private void DisabledCellEvents1_ProcessingCell(object sender, DevExpress.Utils.Behaviors.Common.ProcessCellEventArgs e) { if (DisabledRowHandles.Contains(e.RecordId)) { e.Disabled = true; } }
private void disabledCellEvents1_ProcessingCell(object sender, DevExpress.Utils.Behaviors.Common.ProcessCellEventArgs e) { //Expression specified in the DisabledCellBehavior disables all row cells. Use the following code to enable cells in specific columns if (e.FieldName != "Unbound") { e.Disabled = false; } //This code disables cells of the IsFreeShipping column depending on the IsShipToUSCanada condition GridView view = e.Source as GridView; if (e.FieldName == "IsFreeShipping" && IsShipToUSCanada(view, e.RecordId)) { e.Disabled = true; } }