Results 1 to 6 of 6

Thread: saving and working in tables

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    91

    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

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    91
    huh? please xplain

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    91
    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.

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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
  •  



Click Here to Expand Forum to Full Width