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. (Last updated on : November 16, 2018).
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 ?

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.

XAML

 

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.

C#

 

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.

C#

 

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

C#

 

Sample Links:

 

WinRT

WP

UWP

Article ID: Published Date: Last Revised Date: Platform: Control:
5270 07/29/2015 01/12/2016 WinRT SfDataGrid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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