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

Re: Binding data from DataReader to DataGrid by Sergey

Sergey
Tue Oct 28 08:17:17 CST 2003

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

"Makarand" <anonymous@discussions.microsoft.com> wrote in message
news:0d2d01c39d56$601282c0$a301280a@phx.gbl...
> 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



Re: Binding data from DataReader to DataGrid by William

William
Tue Oct 28 10:06:03 CST 2003

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

myASPDataGrid.Datasource = myReader.ExecuteReader();
myASPDataGrid.DataBing();
"Makarand" <anonymous@discussions.microsoft.com> wrote in message
news:0d2d01c39d56$601282c0$a301280a@phx.gbl...
> 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