S
Sameeksha
Hello,
Is there any way to disable a button control inside a ButtonColumn of a
datagrid ? I could get the button by using syntax like
grid.Items[rownum].cells[columnnum].controls[0] and set its enabled property
to false (((Button)grid.Items[rownum].cells[columnnum].controls[0]).Enabled =
false), but as soon as grid.DataBind() is executed after disabling, the
button is enabled again. How can it be disabled and enabled as per logic
requirements?
Is there any way to disable a button control inside a ButtonColumn of a
datagrid ? I could get the button by using syntax like
grid.Items[rownum].cells[columnnum].controls[0] and set its enabled property
to false (((Button)grid.Items[rownum].cells[columnnum].controls[0]).Enabled =
false), but as soon as grid.DataBind() is executed after disabling, the
button is enabled again. How can it be disabled and enabled as per logic
requirements?