GridView - CellTemplate - Vertical Alignment

2 posts, 0 answers
  1. Frustrated Dev
    Frustrated Dev avatar
    35 posts
    Member since:
    Oct 2006

    Posted 23 Feb 2010 Link to this post


    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
  2. Vlad
    Vlad avatar
    11100 posts

    Posted 24 Feb 2010 Link to this post


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

    Best wishes,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top