2X faster development
The ultimate UWP UI toolkit to boost your development speed.
You can define MaxLength to the GridColumn in display mode by using DisplayBinding and IValueConverter interface as follows. C#
XAML
Note: You can use Converter in Value Binding also as follows. XAML
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. XAML
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. C#
Sample Links: |
2X faster development
The ultimate UWP UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.