void sfDataGrid1_CurrentCellActivating(object sender, CurrentCellActivatingEventArgs e) { if (e.DataColumn.GridColumn.MappingName == "ClosedStatus") { e.Cancel = true; } }
private void GridConfig_CurrentCellActivating(object sender, CurrentCellActivatingEventArgs e) { if (e.CurrentRowColumnIndex.ColumnIndex == 1 || e.CurrentRowColumnIndex.ColumnIndex == 9) GridConfig.AddNewRowPosition = AddNewRowPosition.Bottom; else GridConfig.AddNewRowPosition = AddNewRowPosition.None; GridConfig.UpdateLayout(); }
void DataGrid_CurrentCellActivating(object sender, CurrentCellActivatingEventArgs e) { if (DataContext is SelectFormationOperatorViewModel) { var rowIndex = e.CurrentRowColumnIndex.RowIndex; var recordIndex = DataGrid.ResolveToRecordIndex(rowIndex); if (recordIndex < 0) { return; } e.Cancel |= DataGrid.View.Records.GetItemAt(recordIndex) is UIUser uiUser && uiUser.LastValidationTask.Contains(Locator.LocalizationManager.GetString("TrainingCompleted")); } }
private void GridConfig_CurrentCellActivating(object sender, CurrentCellActivatingEventArgs e) { try { if (e.CurrentRowColumnIndex.ColumnIndex == 1 || e.CurrentRowColumnIndex.ColumnIndex == 7) { GridConfig.AddNewRowPosition = AddNewRowPosition.Bottom; } else { GridConfig.AddNewRowPosition = AddNewRowPosition.None; } //GridConfig.UpdateLayout(); } catch (Exception w) { SiaWin.Func.SiaExeptionGobal(w); MessageBox.Show("error:" + w); } }
void cellgrid_CurrentCellActivating(object sender, CurrentCellActivatingEventArgs args) { eventsTxtBox.Text = "\nCurrent Cell activating : " + args.CurrentRowColumnIndex.ToString(); }