Groups | Blog | Home
all groups > asp.net datagrid control > june 2003 >

asp.net datagrid control : sorting a dataGrid - how can I get the current/selected row?


Dave
6/30/2003 1:16:54 AM
Hi,
I have a ASP.Net application with a DG where a user can click on a row to
obtain details regarding that row.

After sorting my DG, the current row that is clicked on is different then
the row that the DG
obtains details on.

How do I get the current row once my DG has been sorted?

TIA,
Dave



Saravana
6/30/2003 11:59:22 AM
Store the primary key in Datakeyfield while binding and retreive it while
you want to show the details. Then show the detail record based on this
primary key.


--
Saravana
Microsoft India Community Star,
MCAD,SE,SD,DBA.


[quoted text, click to view]

AddThis Social Bookmark Button