-
Jan 31st, 2015, 05:23 AM
#1
Thread Starter
New Member
how to bind datagridview to database at page load time in vb6
I use below code in try catch block but it gives exception"'table' argument cannot be null. Parameter name: table" .My table name is caste and that table two columns are there srno and castename .But it say that my table has no data.Memory table is a datatable.
Dim Dset As New DataSet()
Dset = New DataSet()
Dset.Tables.Add(MemoryTable)
DataGridView1.DataSource = Dset.Tables("caste")
-
Jan 31st, 2015, 06:44 AM
#2
Thread Starter
New Member
Re: how to bind datagridview to database at page load time in vb6
i tried data bind with database using data source but it gives service pack 1 error
-
Jan 31st, 2015, 11:59 PM
#3
Thread Starter
New Member
Re: how to bind datagridview to database at page load time in vb6
-
Feb 1st, 2015, 03:34 AM
#4
Re: how to bind datagridview to database at page load time in vb6
Thread moved from the 'VB6 and Earlier' forum to the 'VB.Net' (VB2002 and later) forum
-
Feb 1st, 2015, 05:24 AM
#5
Re: how to bind datagridview to database at page load time in vb6
Firstly, a moderator has moved this thread to the VB.NET forum because you are using VB.NET, not VB6. It doesn;t bode well that you don't even know what language you are using so it might not be a bad idea to do a bit of reading on the difference.
As for the issue, do you now want to create a typed DataSet or do you want to stick to using an untyped DataSet as you were in your original code? If it's the former then I'd suggest that something in VS is broken so you should probably do a repair. If it's the latter then let us know and we can go back and address what's wrong with that code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|