I am new to WinForms development, currently I am maintaining an application developed in .Net 2.0

In the application, I have grid with column called Length which displays the value with unit. I have used `CellFormatting` event to format the cell value, otherwise it is just number.

But when user start editing I wouldn't want unit to be displayed, user should be allowed enter only numbers. 

Is there any straight forward way to do it? Events or Properties to be set on the grid?

![enter image description here](https://i.stack.imgur.com/LohuJ.png)