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

Header in GridView

1 Answer 13 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anurag Srivastava
Top achievements
Rank 1
Anurag Srivastava asked on 23 Dec 2009, 12:14 PM
Hi,
  We would like to place a combobox in gridview header.How can we add the template in the gridview header.Kindly let us know your feedback  for the same on an urgent basis.

Thanks
Anurag

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 23 Dec 2009, 01:04 PM
Hello Anurag Srivastava,

GridViewDataColumn has a Header property. You may set the header to be a ComboBox the following way:

<telerikGridView:RadGridView x:Name="RadGridView1" AutoGenerateColumns="False" >
  <telerikGridView:RadGridView.Columns>
    <telerikGridView:GridViewDataColumn>
       <telerik:GridViewDataColumn.Header
        <ComboBox HorizontalAlignment="Stretch" Height="20" /> 
       </telerik:GridViewDataColumn.Header
     </telerik:GridViewDataColumn
    </telerikGridView:RadGridView.Columns>
</telerikGridView:RadGridView>

Hope this helps.
In case you have further difficulties or questions while implementing your scenario don't hesitate to contact us.

Greetings,
Anastasia
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Anurag Srivastava
Top achievements
Rank 1
Answers by
Missing User
Share this question
or