Hi,
I am using telerik rad grid for displaying data.
For editing, i am using GridEditCommandColumn for displaying the edit option.
Now based on some logic, i have to hide/show this "Edit" option based on some value coming from the database.
Currently i am trying to do this in ItemDataBound event -
((Telerik.Web.UI.GridEditCommandColumn)(e.Item.OwnerTableView.Columns[0])).Visible = false;
It is hiding the complete column. What i thought was, it will hide the Edit option for the particular row but it hides the column itself.
I also tried to set the EditText property to set it to blank based on condition, but the results were coming awkward, like it was showing or hiding Edit option randomly.
(((Telerik.Web.UI.GridEditCommandColumn)(e.Item.OwnerTableView.Columns[0])).EditText = "Edit";)
Is there any way i can hide the GridEditCommandColumn Edit option for a particular row.
I am using telerik rad grid for displaying data.
For editing, i am using GridEditCommandColumn for displaying the edit option.
Now based on some logic, i have to hide/show this "Edit" option based on some value coming from the database.
Currently i am trying to do this in ItemDataBound event -
((Telerik.Web.UI.GridEditCommandColumn)(e.Item.OwnerTableView.Columns[0])).Visible = false;
It is hiding the complete column. What i thought was, it will hide the Edit option for the particular row but it hides the column itself.
I also tried to set the EditText property to set it to blank based on condition, but the results were coming awkward, like it was showing or hiding Edit option randomly.
(((Telerik.Web.UI.GridEditCommandColumn)(e.Item.OwnerTableView.Columns[0])).EditText = "Edit";)
Is there any way i can hide the GridEditCommandColumn Edit option for a particular row.