I have a gridview and set a DataKeyNames to ID (DataKeyNames="ID").
In this GridView I crate a column to select a row by Select command.
I want to get row id by datakeyname but I can’t do it.
Think my Gridview rows are
1
3
4
6
9
10
15
Numbers are taken from the database and the gridview are used.
Please help me.
If need more details say.
Thanks!
you have to assign
rowindexinrowdataboundevent to your command then then pass that in command argument found a very nice article about this here