I've bound my RadGrid to a data reader, and added a GridViewCommandColumn. How do I set the value of this button, so that when I catch the _OnClick_ event, I'll know a unique id for that row (and not the row # or column #)?
When processing the CommandCellClick event, the sender argument contains the GridCommandCellElement that caused the event. You can access the other cells values through the RowInfo property of the cell.
hi
when using the same event how do I get the unique name of the column?
I have several command columns and because i have only one event to register to i need to know which button was pressed in order to perform the correct command.
thanks,
Idan
0
Nikolay
Telerik team
answered on 04 Jan 2010, 01:19 PM
Hello Idan Varshavski,
You can get the UniqueName of a column by casting the column to GridViewDataColumn: