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, you can animate the cell background when changing the underlining property by writing the behavior for the Grid inside the DataTemplate of column.

The following code example explains how to add Behavior inside the DataTemplate of column in SfDataGrid.Columns that animates the background of the column when you change the underlying property.

XAML

 

You can define the ColorAnimation to animate the column and create the Storyboard for changing the Background property of Grid for DataTemplate of column. The background color of Grid is animated by using the property changed event.

The following code example explains the AnimatedBehaviour of a changed Background of a column when the underling ViewMode property gets changed.

C#

 

The following screenshot displays the animated SfDataGrid.

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

Note: Refer the following link for UWP code snippet

Sample Links:

WRT

UWP

Article ID: Published Date: Last Revised Date: Platform: Control:
6124 01/25/2016 02/05/2016 UWP 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