void sfDataGrid1_CurrentCellActivating(object sender, CurrentCellActivatingEventArgs e)
 {
     if (e.DataColumn.GridColumn.MappingName == "ClosedStatus")
     {
         e.Cancel = true;
     }
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 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);
     }
 }
Ejemplo n.º 5
0
 void cellgrid_CurrentCellActivating(object sender, CurrentCellActivatingEventArgs args)
 {
     eventsTxtBox.Text = "\nCurrent Cell activating : " + args.CurrentRowColumnIndex.ToString();
 }