In DataGridView, Escape key is used to cancel editing. Let's assign it to another key.
Clear text on pressing escape key
vijay kumar
120
Reputation points
I am a new learner in c# and windows forms . I, in my org . have created a custom datagridview . it has four columns . but i am stuck at a task in which on presses escape key in the first three columns ,whatever data we have typed in , we need to clear it out . Also we need to made sure that column 2 and 3 can only numeric values and must be non negative with only allowing two digits after decimal point .