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
125
Obtain the min/max values of a cell
posted

Hello,

I am using an editor to set the min/max values of cells within my ultra grid, but now I must obtain these values in a cell event in order to check the user input and make sure it does not go lower/higher than the min/max values that I had set.

Is there a way to do this? Thank you in advance,

-Emma

Parents
  • 12480
    Offline posted

    Hi Emma,

    I recommend using the column itself to set the min and max values. If you set it this way, the grid will automatically handle checking that the user inputs valid values.

    ultraGrid1.DisplayLayout.Bands[0].Columns["Column 0"].MinValue = 1;
    ultraGrid1.DisplayLayout.Bands[0].Columns["Column 0"].MaxValue = 100;

    Please try this out and let me know whether it works for you.

Reply Children