/// <summary> /// Launches a GridTextBoxXEditControl edit session. /// </summary> /// <param name="cell"></param> /// <param name="beginEdit"></param> private void LaunchEdit(GridCell cell, bool beginEdit) { if (cell != null) { if (cell.IsEmptyCell == true) { cell = AllocateCell(cell); } cell.CellStyles.Default.TextColor = CpText.SelectedColor; if (beginEdit == true) { cell.BeginEdit(true); } } }
internal bool KeySelectCell( GridPanel panel, GridCell cell, bool select, bool extend) { if (cell != null) { int rowIndex = cell.GridRow.RowIndex; if (cell.CanSetActiveCell(panel, cell) == true) { if (select == true && extend == false) { panel.SelectionRowAnchor = cell.GridRow; panel.SelectionColumnAnchor = cell.GridColumn; } if (select == true) { if (rowIndex != cell.GridRow.RowIndex) ArrangeGrid(); cell.ExtendSelection(panel, cell, extend); if (cell.CellEditMode == CellEditMode.Modal) { if (panel.KeyboardEditMode == KeyboardEditMode.EditOnEntry) cell.BeginEdit(true); } } else { if (ActiveElement != null) ActiveElement.InvalidateRender(); cell.InvalidateRender(); } panel.LastProcessedItem = cell; cell.EnsureVisible(); return (true); } } return (false); }