You can define MaxLength to the GridColumn in display mode by using DisplayBinding and IValueConverter interface as follows.
Note: You can use Converter in Value Binding also as follows.
You can also restrict the MaxLength in edit mode by writing Style to TextBox since MS TextBox will be loaded while editing GridTextColumn.
Please refer the below code snippet.
The MaxLength can be set for a particular column by deriving a new class from GridCellTextBoxRenderer and override the OnInitializeEditElement method with the help of TextBox.MaxLength property as follows.
This page will automatically be redirected to the sign-in page in 10 seconds.