Hi,
I understand that can be done through the aspx file, but my datasource generates the detailsview at runtime so i do not know what the headers are till it is loaded onto the detailsview. Im using a webservice to read the data which come in XML format. So what is happening is that the xml tags become the headers of the details view which are not very appropriate. I would like to change the header and order the columns of the the detailsview (in this case the columns become the rows in the detailsview control) in a way i would like it.
Im using an arraylist to enumrate the data returned by the method.
If you would like to try to consume and add a reference to the webservice you could you it at this url: http://www.resdirect.co.uk/webservices/bookinginfo.asmx
Booking Reference: IRB_0705001484_1
Userid: IVAN
here is the code:
using System;
using
public
{
}
BookingRef.
b = bi.GetBooking((TextBox1.Text).ToString(), (TextBox2.Text).ToString());
al.Add(b);
DetailsView1.DataSource = al;
DetailsView1.DataBind();
aspx file:
<%
<!
<
</
P.S: I am trying to reorder the (heading) columns of the Detailsview header text and also give my own headings in the header text.