R
Roger Twomey
Okay, I am really confused. I have this code:
Conn.Open()
DataGrid1.DataSource = command.ExecuteReader(CommandBehavior.CloseConnection)
I have opened the connection, I set the data source, now I want to bind. I SHOULD be able to say 'DataGrid1.DataBind()' but it tells me that DataBind is not a member of windows.forms.datagrid.
What gives??
I use that syntax all the time in asp.net.
Conn.Open()
DataGrid1.DataSource = command.ExecuteReader(CommandBehavior.CloseConnection)
I have opened the connection, I set the data source, now I want to bind. I SHOULD be able to say 'DataGrid1.DataBind()' but it tells me that DataBind is not a member of windows.forms.datagrid.
What gives??
I use that syntax all the time in asp.net.