I have a grid with a GridButtonColumn like this one:
The DataTable associated with this Grid contains a column "DELETE" which either contains the entry "true" or "false" for each row.
What I now want to do is: the item in the above shown GridButtonColumn should be enabled/visible ONLY if the associated DataTable-entry shows the entry "true" for the row.
So what I apparently need is an iterator over the Grid and over the DataTable doing something like
for each item of datatable
if (dataTable.Item["Delete"].Equals("true") RadGrid1.Item[][].Disabled
How can that be done
<telerik:GridButtonColumn CommandName="delete" Text="Delete" UniqueName="delete" ConfirmText="Are you sure you want to delete this item?"> |
<HeaderStyle Width="30px" /> |
<ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" ForeColor="#182B45" Wrap="True" /> |
</telerik:GridButtonColumn> |
The DataTable associated with this Grid contains a column "DELETE" which either contains the entry "true" or "false" for each row.
What I now want to do is: the item in the above shown GridButtonColumn should be enabled/visible ONLY if the associated DataTable-entry shows the entry "true" for the row.
So what I apparently need is an iterator over the Grid and over the DataTable doing something like
for each item of datatable
if (dataTable.Item["Delete"].Equals("true") RadGrid1.Item[][].Disabled
How can that be done