Hi,

i'm trying to make use of sqldataconnections/commands&readers to populate
a datagrid..the msdn collection lib. hasnt been much help at all in this regard :sad:

In addition to binding to the datagrid, i also want to be able to make use of the datagrids ability to update the data to which it is bound by editing the data in the grid, i need to accomlish this through the use of a datareader as well..
any help in this regard will be much appreciated...

thanx alot in advance...

Afzal Hassen

Recommended Answers

All 2 Replies

DataGrid1.DataSource = yourdatareader;
DataGrid1.DataBind();

A datareader is a read-only object. If you need to edit and update changes you need to use a dataset

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.