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

Headers and click event

1 Answer 151 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thibaut
Top achievements
Rank 1
Thibaut asked on 17 Dec 2010, 06:59 PM
hello,

I would like to be able to change header text at runtime in a gridview

1- is it possible to edit headers ?
2- I would like to open a dialog window when the user clicks on a header. how can i get the click event on a header cell ?

best regards
thibaut

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 20 Dec 2010, 11:42 AM
Hi PAPPINI,

 
You may use the Header property of GridViewDataColumn where you can implement your own custom logic. For example you may place a button  and within its click event you may open the window you need, the general snippet is shown below:

<telerik:GridViewDataColumn>
<telerik:GridViewDataColumn.Header>
<telerik:RadButton Content="Click me" Click="RadButton_Click" ...../>
</telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>


Regards,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
GridView
Asked by
Thibaut
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or