示例#1
0
 private void TableView_ShowingEditor(object sender, DevExpress.Xpf.Grid.ShowingEditorEventArgs e)
 {
     if (e.Row == dgvData.GetFocusedRowCellValue("NHAP"))
     {
         e.Cancel = true;
     }
 }
 private void TableView_ShowingEditor(object sender,
                                      DevExpress.Xpf.Grid.ShowingEditorEventArgs e)
 {
     if (e.Column.FieldName != "UnitPrice")
     {
         return;
     }
     e.Cancel = Convert.ToInt32(grid.GetCellValue(e.RowHandle, "Quantity")) == 0;
 }
示例#3
0
        private void Table_ShowingEditor(object sender, DevExpress.Xpf.Grid.ShowingEditorEventArgs e)
        {
            var row = e.Row as InvStandardVariantCombiClient;

            if (row != null)
            {
                if (row.IsEditable == false)
                {
                    e.Cancel = true;
                }
            }
        }