<HeaderTemplate>
<input id="chkAll2" onclick="javascript:SelectAllCheckboxes(this);" runat="server" type="checkbox" NAME="Checkbox4" />
</HeaderTemplate>
<HeaderTemplate>
<input id="chkAll3" onclick="javascript:SelectAllCheckboxes(this);" runat="server" type="checkbox" NAME="Checkbox4" />
</HeaderTemplate>
Instead of using two grid can we able to use single grid view for this
post solution for this
Thanks in Advance
SenthilkumarPosted Mar 20, 2012, 1:28 AM
If you have such requirement to load the grid based on the xml file selection then
just defined the gridview like the following.
You have to load the xml file into dataset
DataSet dsXmlData = new DataSet();
dsXmlData.ReadXml(Path of the selected xml file);
gvxmlView.DataSource = dsXmlData.Tables[0];
gvxmlView.DataBind();
This will load the grid based on the selection...
I suggest you to do not assign the template name and datavalue field. It may be vary because you are trying to read the different xml file with different tag names.
Hope this will help you.
Rajkumar RPosted Mar 20, 2012, 12:25 AM
SenthilkumarPosted Mar 20, 2012, 12:17 AM
If all the XML tags are with the same format and same name then we can read into different dataset and we can merge it into single dataset.
But you have mentioned as different xml tags. So read those xml into separate datasets and we need to iterate(loop) those dataset and add those rows into another dataset.
The single datadset which combined all these three dataset and will be binded with grid.