Home All Groups Group Topic Archive Search About
Author
7 Jul 2005 3:17 PM
dotnettester
Hi,

I have a datagrid which populates fine with a DataReader as source.

I want to add additional rows to the Data Grid above the data from the
datasource.

How can I do that?

Thanks.

Author
7 Jul 2005 7:39 PM
societopia.net
The DataReader is a read-only, forward-only stream of data from a database. 
If you want to add rows to (or edit) your datasource you should use an object
of type System.Data.DataSet class.  (Look up the MSDN library for examples of
the DataSet class)

---
www.societopia.net


Show quoteHide quote
"dotnettester" wrote:

> Hi,
>
> I have a datagrid which populates fine with a DataReader as source.
>
> I want to add additional rows to the Data Grid above the data from the
> datasource.
>
> How can I do that?
>
> Thanks.