Exemple #1
0
 public static void SpreadsheetControl_CellBeginEdit(object sender, DevExpress.XtraSpreadsheet.SpreadsheetCellCancelEventArgs e)
 {
     if (e.Cell.HasRichText)
     {
         e.Cancel = true;
         using var richEditForm = new SpreadRichTextEditForm(e.Cell);
         richEditForm.ShowDialog();
     }
 }
Exemple #2
0
 private void spreadsheetControl1_CellBeginEdit(object sender, DevExpress.XtraSpreadsheet.SpreadsheetCellCancelEventArgs e)
 {
     if (IsFormatPainterActivated())
     {
         ApplyFormat();
         e.Cancel = true;
     }
     else
     {
         biFormatPainter.Enabled = false;
     }
 }