This is my first post so I am sorry ahead of time if this is the wrong forum.....
I am trying to hide the edit button in a radgrid if the field LOCKED is set to 1 but it is not working - any ideas?
Thanks
Julie
                                I am trying to hide the edit button in a radgrid if the field LOCKED is set to 1 but it is not working - any ideas?
Thanks
Julie
private void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) {     if (e.Item is GridDataItem)     {         GridDataItem dataItem = e.Item as GridDataItem;         GridEditManager manager = dataItem.EditManager;         IGridColumnEditor editor = manager.GetColumnEditor("Locked");         TextBox box = (editor as GridTextBoxColumnEditor).TextBoxControl;         if (box.Text == "1")         {             dataItem["EditCommandColumn"].Controls[0].Visible = false;         }         else         {             dataItem["EditCommandColumn"].Controls[0].Visible = true;         }     } }