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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Restrict lenght of input

Thread ID:

Created:

Updated:

Platform:

Replies:

67742 Aug 29,2007 12:02 PM UTC Aug 30,2007 12:08 AM UTC WinForms 1
loading
Tags: GridControl
ToDo
Asked On August 29, 2007 12:02 PM UTC

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

Ajish [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;