In SfDataGrid, it is possible to animate the cell background when changing the underlining property by writing the behavior of the Grid inside the DataTemplate of the column.
The following code example demonstrates how to add Behavior inside the DataTemplate of the column in SfDataGrid.Columns that animates the background of the column when the underlining property is changed.
You can define the ColorAnimation for animating the column and create the Storyboard for changing the Background property of Grid for DataTemplate of the column. The background color of Grid is animated using property changed event.
The following code example shows the AnimatedBehaviour for changing the background of the column when the underlining ViewMode property gets changed.
The following screenshot shows the animated SfDataGrid.
Figure 1: Animated SfDataGrid
You can refer the sample form the following link for animating the GridCell when underlining property gets changed in SfDataGrid.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.