Data Grid
-
I want to load a data grid with data in an XML file. I know i can do this with the ReadXML method of a dataset and then set the DataSource of the grid = to the dataset. But how do I take all the data in the grid and get it back into a dataset so I can save it back to XML format? Also how can you set the column widths for each column and do things like center the column headings and things like that?
-
I want to load a data grid with data in an XML file. I know i can do this with the ReadXML method of a dataset and then set the DataSource of the grid = to the dataset. But how do I take all the data in the grid and get it back into a dataset so I can save it back to XML format? Also how can you set the column widths for each column and do things like center the column headings and things like that?
When you databind your datagrid with a dataset, you are in fact setting up a "relationship" between the 2 objects. The changes done in the grid will be reflected to the dataset, so all you need to do is retain the dataset in memory. Notorious SMC
The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
Get your facts first, and then you can distort them as much as you please Mark Twain