Binding to a datagrid

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
Back
Top