Hi All !
I want to save or Export the content(Row And Column Cell) of a DatGridView To a XML file .how can i do it ? there is No DataSet Or DataTable for DataGridView .
thanks in advance for any Help !
There are a few threads that are about exporting to Xml using c#, take a look at those and try and apply them to suite your needs (its the same principle, put the data from the datagGrid into variables and export them in a structured tree format). if you run into problems just post the code and issues back here.
Replace var with whatever type name you're assigning to the variable. var row in source.Rows would become DataGridViewRow row in source.Rows . You'd know that if you actually read some of the links from that search instead of just determining that var wasn't supported on your older compiler.