|
-
Feb 7th, 2004, 11:44 PM
#1
Thread Starter
Lively Member
saving and working in tables
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
-
Feb 8th, 2004, 03:30 AM
#2
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.
-
Feb 8th, 2004, 05:19 PM
#3
Thread Starter
Lively Member
-
Feb 8th, 2004, 09:49 PM
#4
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.
-
Feb 8th, 2004, 10:18 PM
#5
Thread Starter
Lively Member
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?
Last edited by Synth3t1c; Feb 8th, 2004 at 10:48 PM.
-
Feb 8th, 2004, 11:59 PM
#6
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|