Hi,
I know that may sound silly, but I have a grid and when they type in a cell I need to know if it I check a few things. Now if that row has a checkbox, and they hit spacebar while the cell is selected instead of just checking the box with the mouse:
Selection related properties (SelText, SelStart and SelLength) are not supported if the underlying editor used for editing doesn't support selectable text. Here is my IF statement
ug.ActiveCell.CanEnterEditMode && ug.ActiveCell.IsInEditMode && ug.ActiveCell.SelText.Length == ug.ActiveCell.Text.Length
I found an article that said I should check Editor.SupportsSelectableText but I am not setting an editor. So how can I check to avoid this error?
Thanks.
ug.ActiveCell.EditorResolved will return the editor being used regardless of whether one was explicitly set.
It returns null. The below line is on the grids key down event.
ug.ActiveCell.CanEnterEditMode returns true, and ActiveCell.IsInEditMode returns true. ug.ActiveCell.Editor returns null. This is true on any of the columns (cell) for that grid. The only issue I am having is on the checkbox column.
B A utiful..thanks.
You have to use EditorResolved, not Editor.