but then i need to fetch the username of select row on grid , but it gices always null:
string username = (string)RadGrid1.SelectedValues["UserName"];
i think its because i'm databing on code behind because with sql datasource directly associated with grid works fine
5 Answers, 1 is accepted
Please try the following code snippet ,I have tried to access the selected rows on a button click.
<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" Text="Apagar" UniqueName="DeleteColumn">
then on item command
if (e.CommandName == "Delete") but i cant get the username of the custom dataset bind on need datasource event
I have bind the radgrid in the NeedDataSource event as shown in the above code,In order to access the selected row on the button click,please try the following code snippet.
Help me on this please i cant fix it