Jay1b Posted September 10, 2003 Posted September 10, 2003 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. Quote
Moderators Robby Posted September 10, 2003 Moderators Posted September 10, 2003 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. Quote Visit...Bassic Software
Jay1b Posted September 10, 2003 Author Posted September 10, 2003 Cheers, i havent got a clue where to begin with this one. I am using vb/net by the way. Quote
Jay1b Posted September 10, 2003 Author Posted September 10, 2003 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.