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

[Solved] RadGrid columns problem

2 Answers 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
lucian ticrea
Top achievements
Rank 1
lucian ticrea asked on 02 Dec 2009, 08:45 AM
Hello, everyone,
I have a problem with a grid that has as datasource a List of custom items of type Entry. I added in the list of columns only a part of the fields in the Entry and yet it seems to show up all the fields. Is there anything I am missing?

Lucian

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 02 Dec 2009, 09:11 AM
Hello Lucian,

Can you check whether you have set the property 'AutoGenerateColumns' to True?

         When the AutoGenerateColumns property is set to true, an GridBoundColumn object is automatically created for each field in the data source. Each field is then displayed as a column in the Telerik RadGrid control in the order that the fields appear in the data source.

-Shinu.
0
lucian ticrea
Top achievements
Rank 1
answered on 02 Dec 2009, 11:35 AM
Thanks a bunch for your answer! I have set AutoGenerateColumns to false and this solved  my bug.
I knew you guys won't let me down.
Lucian
Tags
Grid
Asked by
lucian ticrea
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
lucian ticrea
Top achievements
Rank 1
Share this question
or