Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
703
Grid Cell max Length
posted
i want to set the max length(number of characters) of the grid cell value.
Parents
No Data
Reply
  • 9836
    Verified Answer
    posted

    For the TextColumn you can set a style for the editor. The TextBox control exposes a MaxLenght property which determines the maximum number of characters allowed for the user input:

    <Style TargetType="TextBox" x:Key="st">
                    <Setter Property="MaxLength" Value="5"/>
    </Style>

    <igGrid:TextColumn Key="Name" EditorStyle="{StaticResource st}" />

    I hope this helps

     

Children