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

IEnumerabale Auto Column

1 Answer 13 Views
GridView
This is a migrated thread and some comments may be shown as answers.
MiddleTommy
Top achievements
Rank 1
MiddleTommy asked on 11 Nov 2009, 02:33 PM
When I set the RadGridView to AutoGenerateColumns It generates columns for all Properties in my object even Properties that are Collections or IEnumerable. Is there a way to disable AutoGenerating IEnumerable Columns? Pretty much all of my Objects have relation properties that are IEnumerable.

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 11 Nov 2009, 02:54 PM
Hi,

You can use AutoGeneratingColumn event to cancel adding of this column (e.Cancel = true).

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