Hi! I need add a column for select the row, I'm tried add the column with this code:
In code behind I have this:
My problem is, always select the first row on the page in the grid.
I hope for your help.
<Columns> |
<telerik:GridButtonColumn CommandName="Select" Text="Select" |
UniqueName="column" > |
</telerik:GridButtonColumn> |
</Columns> |
In code behind I have this:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) |
{ |
foreach (GridDataItem dataItem in RadGrid1.MasterTableView.Items) |
{ |
dataItem.Selected = true; |
} |
} |
I hope for your help.