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

GridView with AutoGeneratingColumn=True and CellTemplateSelector

1 Answer 134 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lou
Top achievements
Rank 1
Lou asked on 08 Dec 2010, 05:30 PM
I am dynamically adding GridViewColumns in code and use a CellTemplateSelector to format the cells. That works. However, I would really like to just use AutoGeneratingColumns=True and still use the CellTemplateSelector mechanism. Is that possible? My attempts seem to indicate it is not. Thanks for any assistance on this.

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 09 Dec 2010, 09:38 AM
Hello Lou,

You can use the AutoGeneratingColumn event of RadGridView and set the CellTemplateSelector to e.Column.

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