saving into xml
-
i am creating a control datagridview at runtime . and entering column and row names . I am saving the details of no of columns and rows ,font,borderstyle and normal details in a datatable . item(col,row).value means i am getting the cell information, But i am not getting the columns and rows headers here bcoz it doesnot take -1 . By Which means i can store all these information ?? in a datatable and assing it to back ?
For1206
-
i am creating a control datagridview at runtime . and entering column and row names . I am saving the details of no of columns and rows ,font,borderstyle and normal details in a datatable . item(col,row).value means i am getting the cell information, But i am not getting the columns and rows headers here bcoz it doesnot take -1 . By Which means i can store all these information ?? in a datatable and assing it to back ?
For1206
You'd have to build some kind of object to store this data in, be it a datatable, or a custom serializable class designed to hold this data. Then you just serialize the instance of the class out to an XML file.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007