hello,
in my grid's edit-mode i am using some conditional code to disable column editing for certain columns, like so:
...my question -- how can i similarly disable:
a) the "Edit" command column link-button before a row enters edit-mode
b) the "Update" command link-button while in edit-mode
i will post the solution if i find it.
thanks,
matt
in my grid's edit-mode i am using some conditional code to disable column editing for certain columns, like so:
protected void gridItems_ItemDataBound(object source, GridItemEventArgs e){ if (e.Item.IsInEditMode && e.Item is GridEditableItem) { //NOTE: if this grid supported inserts, we'd have to test against "e.Item.ItemIndex == -1", since -1 is used by inserts. GridEditableItem editableItem = e.Item as GridEditableItem; //get test status status string status = ((TextBox)editableItem["Status"].Controls[0]).Text; switch (status.ToLower()) { case "rejected": editableItem["UseInAllocation"].Enabled = false; editableItem["UseInToleranceCalculation"].Enabled = false; editableItem["AcceptanceStatus"].Enabled = false; break; //[set others case conditions here] } }}...my question -- how can i similarly disable:
a) the "Edit" command column link-button before a row enters edit-mode
b) the "Update" command link-button while in edit-mode
i will post the solution if i find it.
thanks,
matt