Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1800
MinValue for grid cell
posted

Hi,

I am setting the MinValue and MaxValue for a cell in a grid with the help of BeforeCellActivate event.

However MaxValue is set correctly but MinValue is NOT set.

Eg: I have MaxValue as 1000 and MinValue as 10.

It is not allowing me to enter values more than 1000 which is correct but for MinValue it is allowing me to enter 9,8,7 etc.. till 0. The datatype of the column is Integer. Any workarounds?

Regards,

Viswanth V.G

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Viswanth, 

    When you say you can enter a value of 9, do you mean the user can type the number 9? Or so you mean they can type a 9 and then leave the cell with no error? 

    The grid has to allow the user to type in a single digit, because it doesn't have any way of knowing that they are not going to type any more digits. You have to be able to type "9" in order to type "90", for example.  So the validation for MinValue in this case cannot occur until the user is done typing and tries to leave the cell. 

    Also, I wasn't aware that there is a MinValue or MaxValue on the cell, I though these prpoerties were on the column. Is that what you meant? 

Children