How to make a DataGridView Cell/Column not enterable / selecatble

Trips

Well-known member
Joined
Aug 7, 2010
Messages
2,788
Hi,
I am trying to make a Column in a DataGridView non-entaerable (the user should not be able to set focus to the cell neither using the mouse nor the keyboard).
I already tried to change the CurrentCell property in the CellStateChanged. But in this event-handler the CurrenCell is the "old" one; setting it to any value doesnt help, because the value is set after calling this procedure.
In Delphi there is an event-handler for entering a cell, where you can tell whether the user is allowed to enter a cell. Is there anything comparable in C#? Any other suggestions?

View the full article
 
Back
Top