Binding to a datagrid

G

Guest

Me.DataGrid1.DataSource = DsProgramDesc
Me.DataGrid1.DataBind(

As I go through the debugger the dataset DsProgramDesc1 has exactly the ItemArray info it should have. So why can't I bind it to my datagrid? I am using a web form. The headers for the dataset rows appear on the datagrid but the detail does not.
 
C

Claes Bergefall

In the windows forms world you'll need to set the DataMember property aswell
It looks like you're writing a web form (DataBind is a web forms method)
though,
so things might be different. Try one of the groups in
microsoft.public.dotnet.framework.aspnet.*


/claes

Alex Kushner said:
Me.DataGrid1.DataSource = DsProgramDesc1
Me.DataGrid1.DataBind()

As I go through the debugger the dataset DsProgramDesc1 has exactly the
ItemArray info it should have. So why can't I bind it to my datagrid? I am
using a web form. The headers for the dataset rows appear on the datagrid
but the detail does not.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top