from SqlDataReader to dataGrid

  • Thread starter Thread starter PawelR
  • Start date Start date
P

PawelR

Hello group,
I have "black hole" in my maind and I have very easy question.
How show table from MSSql with using SqlDataReader (not SqlDataAdapter).
Readed data is read only. Not will be update to database.

Thanks PawelR
 
Hi,

Did you try to assign the DataReader to datagrid.DataSource ?

Datasource expect a IEnumerable and DataReader support IEnumerable



Cheers,
 
Back
Top