Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



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

Posts: 2
Trades: 0
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
 
 
Register now for full access!
Old 04-28-2005, 05:27 PM
Junior Talker

Posts: 2
Trades: 0
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, 01:05 AM Re: Datagrid in VB.NEt
Junior Talker

Posts: 1
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.10802 seconds with 12 queries