I saw the wingrid has a status that the row is bounded by doted line (No cell is selected) and using up and down button, it will navigate the whole next row. How can I trigger this event???
Thank You!
Hi Mike,
Ths for your quick reply, but I think there is some misunderstanding~ The one I mention is that, even I dont want the use has any change to select a cell or a row... or I would say, the cell of the grid can only be in EditMore whatever I scroll by mouse wheel or click the line between two row accidiently.
Thank You for your solution.
Regards
Andrew ^^
Hi Andrew,
The dotted line you show here is called the focus rectangle. It has nothing to do with selection, it indicates the active control on a form and specifically the active cell or row in the grid.
Here's a KB article that shows how to turn this off for any Infragistics Winforms control:
HOWTO:How can I turn off the Focus Rectangle on an Infragistics Win Control?
My stituation is that....
Actually, my problem is that the dotted rectangle in a selected row or cell in the grid.
For me, I have already Overrides the SelectTypeCell and SelectTypeRow to None, but it's still happen.
For row, when user click the line between two row, the dotted line rectangle appear and active cell become null (I have to handle this stituation for my business logic)
For cell, this dotted rectangle appear when user press "Esc" (Anyway, I have override the keypress event), or scroll the records by mouse wheel (As attached)
Can anyway to disable this selection ???
Andrew
Hi,
I'm not really sure what you mean by "trigger this event". What event are you referring to?
Do you mean you want the grid to enter a state where it has an active row (with a focus rectangle), but no selected row?
Do you want to do this programmatically? Or do you want to enforce that this is always the case and not allow the user to enter edit mode in a cell?