Hi,\n\nI have a datagrid with 2 template columns. One of the columns has a\nEditItemTemplate defined that is just a textbox say called edClass. When the\nuser edits the row of the datagrid I want to check the value in another\ncolumn first and depending on its result I want to either allow a column to\nbe edited or not by somehow not showing its EditItemTemplate. i.e. sometimes\nI want to allow the edClass textbox to be visible and other times the\nitemtemplate just remain when the user is editing the row. Does this make\nsense?\n\nI can get the value I want to check by doing this....\nIf CType(e.Item.FindControl("lblPendingRestype"), Label).Text() = "ClassA"\nThen\nDont allow the user to edit, dont display the edClass textbox\nthat is defined in the edititemtemplate\nEnd If\n\nHow can I do this?