How do i make a "table" like part of a form that some1 can save and stuff? like, this is for a gradebook program; i want the students names, and then their grades and assignments
Printable View
How do i make a "table" like part of a form that some1 can save and stuff? like, this is for a gradebook program; i want the students names, and then their grades and assignments
You can use a DataGrid and xml file. You can load (ReadXML) and save (WriteXML) xml files via a DataSet object which can be displayed in a DatGrid.
huh? please xplain
Well what part don't you get?
You can use a dataset object for your data and show it in a datagrid which is kind of like a 'table'. Then you can load and save that data to an xml file via the WriteXML and ReadXML methods of the dataset. You can also read/write to a database using a dataadapter if you want.
i dont understand how to load it in a grid like thing. whas a dataadapter??? im a newb! can u write me an example?
EDIT: ok i think i understand now, but how do i make colums and rows in the grid?
The columns and rows will automatically be made when you set the datasource otherwise you can make a tablestyle and map it to your datasource. After filling or loading your dataset just set it as the DataSource of the grid.
DataGrid1.DataSource=DataSet1