Binding data from DataReader to DataGrid

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
 
S

Sergey Ivasenko

I think it's not possible to bind SqlDataReader to a Win control.
You can bind DataSet or DataTable.
 
W

William Ryan

You can only do it with the asp.net datagrid...

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

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