Manuall entering data into a datagrid.

Jay1b

Contributor
Joined
Aug 3, 2003
Messages
640
Location
Kent, Uk.
I want to use a table, in which i can manually enter data. I cant use a FlexGrid (for other reasons), so i was going to try to use a datagrid - although the information i want it to initially load is currently being held in arrays, i want it to pass the information from an array to a datagrid - Although i havent got the slightest clue on how to do this.

Thanks.
 
You can loop through the array and build a datatable or dataview which can then be bound to the datagrid.

There are many examples around here for building datatables and dataviews, I'll try and find one.
 
I found this thread.

http://www.xtremedotnettalk.com/showthread.phps=&threadid=6927
9&highlight=flexgrid

And i managed to derive the following from it, ok i havent done alot :(

Dim ds = New DataSet("MyDataSet")
Dim dt = ds.Tables.Add("MyTable")

dt.Columns.Add("ID")
dt.Columns.Add("FirstName")
dt.Columns.Add("LastName")
dt.Columns.Add("DOB")

But how can i get datagrid1 to read a dataset? and not a datasource.

Thanks
 
Back
Top