This is a migrated thread and some comments may be shown as answers.

GridView - CellTemplate - Vertical Alignment

1 Answer 114 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Frustrated Dev
Top achievements
Rank 1
Frustrated Dev asked on 23 Feb 2010, 06:27 PM
Hello,

I have a GridView what has two columns. The first column is a GridViewDataColumn with a custom CellTemplate. The second column is also a GridViewDataColumn with a custom CellTemplate.

My first column is a variable height column. It expands as needed based upon the data in it. The problem is, the content in the second column is always vertically centered. In reality, I want this content to be vertically aligned against the top. The DataTemplate is only a StackPanel with a ComboBox in it.

How do I get the content of my second column to be vertically centered against the top? Please note, I have set the StackPanel, ComboBox VerticalAlignment="Top" property and this did not work.

Thank you

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 24 Feb 2010, 07:38 AM
Hi,

I've attached an example project to illustrate you how to achieve this.

Best wishes,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Frustrated Dev
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or