I have a Grid showing a set of files.
When the user clicks on the column with the filename, the Code-Behind does something with this information.
To do this, I have data-bound this Grid with a table function returning the attributes ID and NAME (among others).
Within the Grid, I created a GridButtonColumn like this:
When the user clicks on the column with the filename, the Code-Behind does something with this information.
To do this, I have data-bound this Grid with a table function returning the attributes ID and NAME (among others).
Within the Grid, I created a GridButtonColumn like this:
| <telerik:GridButtonColumn CommandName="Select" DataTextField="name" HeaderText="File name" Text="Select" UniqueName="column"> |
| <HeaderStyle Width="200px" /> |
| </telerik:GridButtonColumn> |
Now I wish to somehow make sure that when the User clicks on the link displayed within this column, the CodeBehind can obtain the ID associated with the displayed NAME.
How do I do that?
What event is thrown when a user clicks into the GridButtonColumn?
How can I link the ID to the column items? Making sure that it shows the name NAME was trivial via DataTextField. But what do I do with the ID?
Thanks
s.