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
4695
set max to ultragrid columns
posted

I have the decimal value in ultragrid columns.

How can I set maximum length or value to this column??

  • 69832
    Offline posted

    UltraGridColumn exposes 'MinValue' and 'MaxValue' properties, so you can use those to enforce a valid range. Note that when you set the property, you should first assign the value to a variable of the same type as the column (System.Decimal in your case), and assign that value to the property, so as to avoid inadvertant conversions by the development environment.