eliassal
Sun Mar 05 06:55:27 CST 2006
Thanks. I havn't used this object(sqldatasource). I need to work with
datareader because I have written a dataAccessLayer that sometimes returns a
DataReader and want to know how to bound it to Gridview.
Salam
"Miha Markic [MVP C#]" wrote:
> Hi,
>
> "SalamElias" <eliassal@online.nospam> wrote in message
> news:C3D9D826-29C3-488F-86F3-48C395E0F221@microsoft.com...
> > Hi, I can give a DataTable to gridview and in one line data are displayed
> > int the gridview using :
> > dgvEmployee.DataSource = myDataTable.;
> >
> > When I use a dataReader instead, do "dgvEmployee.DataSource = myReader;",
> > nothing is displayed in the gridview.
> > Does that mean that GridView dosnt or can not bind to a data reader
> > Thanks for your help
> >
> I am not sure. Why don't you use SqlDataSource instead?
>
> --
> Miha Markic [MVP C#]
> RightHand .NET consulting & development www.rthand.com
> Blog:
http://cs.rthand.com/blogs/blog_with_righthand/
>
>
>