Thank you for writing back.
The best way for you to achieve this behavior will be to use GridViewDecimalColumn
. This way you will be able to set Мaximum and Мinimum value. Also if the user pasteс bigger or smaller value the cell value would be rounded when the cell is in edit mode. For the case where the cell is not in edit mode and you paste in it, you can use the Pasting event to handle it.
I hope this will be useful. Should you have further questions, I would be glad to help.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>