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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set different SmallChange value to each row of GridUpDownColumn in the SfDataGrid ?

Platform: Windows Phone |
Control: SfDataGrid

The SfDataGrid allows you to display numeric values by using the GridUpDownColumn. The SfNumericUpDown control is loaded in the edit mode of the GridUpDownColumn and the SmallChange property specifies the UpDownValue.

The following code example illustrates the GridUpDownColumn in the WinRT platform.



The following screenshot shows the default appearance of the GridUpDownColumn in the WinRT platform.


You can set different SmallChange values to each row by deriving a new class from the GridCellUpDownRenderer class. Hook the Tapped and KeyUp events of the SfNumericUpDown in the OnWireEditUIElement virtual method as shown in the following code example.



With the help of the Tapped and KeyUp events of the SfNumericUpDown, you can set different SmallChange values when the mouse Up or Down arrow key is pressed.



Refer to the following code example to remove the default GridCellUpDownRenderer and add the customized GridCellUpDownRendererExt to the renderer’s collection in the SfDataGrid.



Sample Links:





You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile