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.
Up arrow icon