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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to animate the GridCell when the underlining property gets changed in SfDataGrid?

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.

XAML

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.

C#

The following screenshot shows the animated SfDataGrid.

F:\Farjana\F Drive\KB\Animation\Silvet.png

Figure 1: Animated SfDataGrid

You can refer the sample form the following link for animating the GridCell when underlining property gets changed in SfDataGrid.

Sample: AnimateCellGrid_SilverLight

Article ID: Published Date: Last Revised Date: Platform: Control:
3242 01/14/2015 06/05/2015 Silverlight 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