bind web controls to data source

I have a dropdownlist and datagrid on the webform I have set the dataset,datamember,etc... in the design mode. in the page load event I put this code:
 Me.OleDbDataAdapter1.Fill(Me.DataSet11).

now I dont see any data showing on the web controls.

any idea?

thanks
jskfanAsked:
Who is Participating?
 
Bob LearnedConnect With a Mentor Commented:
Me.DataGrid1.DataSource = Me.DataSet11.Tables(0)
Me.DataGrid1.DataBind()

Bob
0
 
gbzhhuConnect With a Mentor Commented:
Put a breakpoint in the line
Me.OleDbDataAdapter1.Fill(Me.DataSet11)

When the breakpoint hits, click on (or put cursor on it) the word DataSet11 then right click it.  In the pop up menu select  Quick Watch.  In the quick watch window check that the dataset actually contains the data you are expecting

In the page load event add this line

Databind() after Me.OleDbDataAdapter1.Fill(Me.DataSet11).
0
 
jskfanAuthor Commented:
Me.OleDbDataAdapter1.Fill(Me.DataSet11).databind

it's underlined with blue line, it's an error
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
gbzhhuCommented:
Can you post your code on page load
0
 
jskfanAuthor Commented:
I will get back with you later
0
 
jskfanAuthor Commented:
I added databind as follow and it worked
Me.DataGrid1.DataBind()
me.dropdownlist1.databind()
0
All Courses

From novice to tech pro — start learning today.