Binding data from DataReader to DataGrid

  • Thread starter Thread starter Makarand
  • Start date Start date
M

Makarand

Hi

I have used SQLDataReader for fetching data(due to
performance issue) and now I want to bind this data to
DataGrid, How should I do this?

Sample code is most welcomed :)

Makarand
 
I think it's not possible to bind SqlDataReader to a Win control.
You can bind DataSet or DataTable.
 
You can only do it with the asp.net datagrid...

myASPDataGrid.Datasource = myReader.ExecuteReader();
myASPDataGrid.DataBing();
 
Back
Top