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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataControl selected row height to change

Thread ID:





101515 Oct 31,2011 09:35 AM UTC Nov 28,2011 11:47 AM UTC WPF 1
Tags: GridControl
Christopher Baker
Asked On October 31, 2011 09:35 AM UTC


Is there a way to set the selected row height with the GridControl? Basically when the row is selected I would like the row to transition to a larger height. I would also like this transition with easing, is this possible.

Also is it possible to when scrolling the data from left to right, is it possible to put a easing effect on this this scroll?

Thanks for you help

Jawahar Jeevanandan J [Syncfusion]
Replied On November 28, 2011 11:47 AM UTC

Hi Christopher,

Thanks for your patience.

You can achieve your requirement by handling the CurrentCellActivated and CurrentCellDeactivating event in the following ways.

Code snippet [C#]:

this.grid.CurrentCellActivated += new Syncfusion.Windows.ComponentModel.GridRoutedEventHandler(grid_CurrentCellActivated);
this.grid.CurrentCellDeactivating += new Syncfusion.Windows.ComponentModel.GridCancelRoutedEventHandler(grid_CurrentCellDeactivating);

void grid_CurrentCellActivated(object sender, Syncfusion.Windows.ComponentModel.SyncfusionRoutedEventArgs args)
this.grid.Model.RowHeights[this.grid.CurrentCell.RowIndex] = 50;

void grid_CurrentCellDeactivating(object sender, Syncfusion.Windows.ComponentModel.SyncfusionCancelRoutedEventArgs args)
this.grid.Model.RowHeights[this.grid.CurrentCell.RowIndex] = this.grid.Model.RowHeights.DefaultLineSize;

We have prepared a sample based on this and you can find the sample under the following location

Sample : http://www.syncfusion.com/downloads/Support/DirectTrac/86767/CS-1288539346.zip

Please let us know if you have any queries.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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