Articles in this section
Category / Section

How to disable value change when pressing Up and Down arrow keys in Silverlight GridDataControl?

1 min read

By default, when you press the up or down arrow keys in DateTimeEdit cell, the date values change sequentially. When you do not want the up, down arrow keys to change date values in DataTimeEditCell, you can set IsScrollingOnCircle as False for this CellType.

The following code example shows you how to set IsScrollingOnCircle as False for DateTimeEdit cell type.

XAML

<syncfusion:GridDataControl.VisibleColumns>
    <syncfusion:GridDataVisibleColumn MappingName="HireDate" HeaderText="HireDate">
        <syncfusion:GridDataVisibleColumn.ColumnStyle>
            <syncfusion:GridDataColumnStyle CellType="DateTimeEdit">
                <syncfusion:GridDataColumnStyle.DateTimeEdit>
                    <syncfusion:GridDateTimeEditStyleInfo IsScrollingOnCircle="False" />
                </syncfusion:GridDataColumnStyle.DateTimeEdit>
            </syncfusion:GridDataColumnStyle>
        </syncfusion:GridDataVisibleColumn.ColumnStyle>
    </syncfusion:GridDataVisibleColumn>
</syncfusion:GridDataControl.VisibleColumns>

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied