I have an exisitng gridview with predefined columns and existing data. I save the data to an XML file using DataSet.WriteXML().
When I read back the xml file with DataSet.ReadXML(), additional columns are added with the data. Of course I do not want the additional columns, so I am not sure how to get around this.
xml to datagrid
Page 1 of 11 Replies - 165 Views - Last Post: 04 October 2012 - 02:05 PM
Replies To: xml to datagrid
#2
Re: xml to datagrid
Posted 04 October 2012 - 02:05 PM
After you load your data the first time, set AutoGenerateColumns to false.
GridView: http://msdn.microsof...atecolumns.aspx
DataGridView: http://msdn.microsof...atecolumns.aspx
GridView: http://msdn.microsof...atecolumns.aspx
DataGridView: http://msdn.microsof...atecolumns.aspx
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|