Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • Moderators
Posted

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.

Visit...Bassic Software
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...