|
-
Oct 5th, 2004, 11:42 PM
#1
Thread Starter
Hyperactive Member
datagrid
I already add a DataGrid on my WebForm, and already also connected it.. But when the WebForm is loaded, I can't see the DataGrid?? what the problem with this?
-
Oct 5th, 2004, 11:54 PM
#2
-
Oct 6th, 2004, 12:00 AM
#3
Thread Starter
Hyperactive Member
DataGrid1.DataSource = DataSet11.Table1
-
Oct 6th, 2004, 12:06 AM
#4
-
Oct 6th, 2004, 12:14 AM
#5
Thread Starter
Hyperactive Member
what that mean?? I have a OleDbDataAdapter and I already connected the database.. DataGrid1.DataSource=Dataset11.Table1 doesn't work
-
Oct 6th, 2004, 12:21 AM
#6
Touché as in... I said "show some code" and you showed just "some" code. 
What I meant was, show all the relevant code.
VB Code:
DataGrid1.DataSource = DataSet11.Table1
Might have to be
VB Code:
DataGrid1.DataSource = DataSet11.Tables(0)
-
Oct 6th, 2004, 01:09 AM
#7
Fanatic Member
ok if you have the dataadapter and sqlstring you still need to do the followwing.
VB Code:
Dim dsOne As New System.data.DataSet
da.Fill(dsOne, "dtOne")
dgOne.DataSource = DsOne.Tables("dtOne")
dgOne.DataBind()
-
Oct 6th, 2004, 02:22 AM
#8
New Member
Fill databse into SqlDataAdapter
Code:
SqlDataAdapter1.Fill (DataSet11,"tblTest")
Then Bind database into Datagrid
Datagrid1.DataSource=DataSet11
Datagrid1.Bind()
Have fun
-
Oct 11th, 2004, 03:06 AM
#9
Lively Member
hi
I think the datagrid receives no records from the database table (or) from the stored procedure you used to return the dataset.
you can try with Response.Write(DataGrid.Items.Count);
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
|