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(); } }
private void spreadsheetControl1_CellBeginEdit(object sender, DevExpress.XtraSpreadsheet.SpreadsheetCellCancelEventArgs e) { if (IsFormatPainterActivated()) { ApplyFormat(); e.Cancel = true; } else { biFormatPainter.Enabled = false; } }