471,317 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,317 software developers and data experts.

find the DataRow associated with datagrid row

Hi,

Is there better way to find the DataRow associate with row of a datagrid?

Now I put ID column(PK) as a column in a datagrid, and get this cell value
of the datagrid current row (DataGrid.CurrentRowIndex), then use
DataTable.Rows.Find(id) to find the datarow.

I feel this way is not generic. Is there better way to find the associated
DataRow?

System internally must know how they are associated, since I can edit the
datatable value in datagrid.

Thanks!
Ryan
Feb 12 '06 #1
0 946

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Josh | last post: by
1 post views Thread by DotNetJunkies User | last post: by
6 posts views Thread by Derek | last post: by
2 posts views Thread by =?Utf-8?B?TWFyYw==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.