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 animate the GridCell when the underlining property gets changed in SfDataGrid?

Platform: Silverlight |
Control: SfDataGrid |
Published Date: January 14, 2015 |
Last Revised Date: June 5, 2015

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.

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

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