Reply
Datagrid in VB.NEt
Old 04-28-2005, 03:27 PM Datagrid in VB.NEt
Junior Talker

Posts: 2
I am new to VB.Net and am trying to display data from a Pervasive datasource in a datagrid, just one table with 2 fields, as a learning exercise. I have a data adapter through which I can preview the data correctly and with which I can create a dataset. I have to click on fill dataset to see anything and the datatable pane shows "table" whatever that means.

I added a datagrid to the form and set the datasource property to the dataset and the data member property to the thing called table. I then get all my field headings from my live data table but every cell shows "null". I am sure that I am doing something wrong in the data adapter or with the datagrid properties but can't work out what.

Please help.

Thanks

Ian Cook
iacook28 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-28-2005, 04:27 PM
Junior Talker

Posts: 2
I forgot to add the code to fill the dataset that the datagrid was bound to:-

Me.OdbcDataAdapter1.Fill(DataSet11)
iacook28 is offline
Reply With Quote
View Public Profile
 
Old 03-01-2006, 12:05 AM Re: Datagrid in VB.NEt
Junior Talker

Posts: 1
private sub pageload() handles mybase.load

if not ispostback then
oledbdataadapter1.fill(dataset1)
datagrid1.databind()
end if
end sub
panther_jv is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Datagrid in VB.NEt
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11655 seconds with 13 queries