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.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|