We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Restrict lenght of input

Hi,
I wounder if it is possible to restrict the input lenght of cells similar as to TextBoxes.

How can I do this?

Regards,
ToDo

1 Reply

AJ Ajish Syncfusion Team August 30, 2007 12:08 AM UTC

Hi

Thank you for your interest in Syncfusion product.

Yes, It is possible to restrict the input length of cells similar as to TextBoxes in the grid. The following code snippet.

GridStyleInfo colStyleInfo = this.gridControl1.ColStyles[1];
colStyleInfo.MaxLength = 5;

Kindly try the above code and let me know if you need any further assistance.

Regards,
Ajish.

Loader.
Live Chat Icon For mobile
Up arrow icon