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
105
For UltraWinGrid - IntegerNonNegative field MaxLength is not working.
posted

HI,

For UltraWinGrid - IntegerNonNegative field MaxLength is not working. By default its taking 10 as maxlength. For normal fields its working.

Here is the code

ugMasterGrid.DisplayLayout.Bands[0].Columns["RoleNumber"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.IntegerNonNegative;

ugMasterGrid.DisplayLayout.Bands[0].Columns["RoleNumber"].MaxLength = 5;

Please help me regarding this.

Regards,

G.Mallikarjuna.

Parents
No Data
Reply
  • 69832
    Offline posted

    That column style causes the column to use a number mask, and the editor used when masking is enabled does not honor the MaxLength property, because length restrictions are enforced by the mask. You can get a numeric mask that restricts input to no more than 5 characters and does not allow negative values by setting the MaskInput property to "nnnnn".

Children
No Data