getting the underlying for a datagrid row when the data source is a data reader

Hi

When the data source for my datagrid is a dataset I get the corresponding DataRow for the selected DataGridItem as follows:

Dim pk as integer = grid.DataKeys(grid.selectedIndex)
Dim dt as DataTable = grid.DataSource.Tables(grid.DataMember)
Dim dr as DataRow = dt.Rows.Find(pk)

How do I do the equivalent when the data source is a data reader.

Thanks andrea
0
andieje
4/17/2006 1:36:18 PM
asp.net.presentation-controls 72751 articles. 3 followers. Follow

0 Replies
576 Views

Similar Articles

[PageSpeed] 27

Reply: