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 make row height auto when using a data template

Thread ID:

Created:

Updated:

Platform:

Replies:

97526 Dec 6,2010 01:39 PM Dec 11,2010 05:38 AM WPF 1
loading
Tags: GridControl
Jon Elster
Asked On December 6, 2010 01:39 PM

I have the following.. using a large data template but the row height is very small and very little of the template is displayed. How do I make the entire template appear?
thx

ShowAddNewRow="False"
ShowFilters="False"

AutoPopulateColumns="False"
AutoPopulateRelations="False">













Karthick Ravichandran [Syncfusion]
Replied On December 11, 2010 05:38 AM

Hi Elster,

Thanks for choosing Syncfusion Products.

Currently, we haven’t support rowheight property in DataTemplate. You can achieve you requirement by setting the RowHeights property in the code behind. For more information please refer the code snippet and sample.

[Code Snippet]
[C#]
void _grid_Loaded(object sender, RoutedEventArgs e)
{
_grid.Model.RowHeights[2] = 90;
}

Please let us know if you need more information.

Thanks,
Karthick





WpfApplication1-337474324_cf87c067.zip

CONFIRMATION

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.

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

;