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

[Solved] Modifying GridViewHeaderCell for newly added columns

1 Answer 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Francois Lamy
Top achievements
Rank 1
Francois Lamy asked on 14 Jan 2010, 05:54 PM
I am using 2009 Q3 SP1 version of RadGridView and I am handling the RowLoaded event on the RadGridView class to create a custom filter row similar to that from your examples.  I allow users to add new columns to the grid at runtime.  Is there any way to modify these new columns' headers like I do in the RowLoaded event handler?  I don't see any way of accessing the header cell or anything obvious like that.

1 Answer, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 15 Jan 2010, 10:09 AM
Hi Thomas ,

You may place any custom content in the header cell by using the Column.Header property. You can add any visual there (buttons, textboxes etc. )  and this will replace the default header with the column name.

All the best,
Pavel Pavlov
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
Francois Lamy
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or