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

Limit fields displayed in bindinglist

1 Answer 19 Views
GridView
This is a migrated thread and some comments may be shown as answers.
jeff
Top achievements
Rank 1
jeff asked on 05 May 2008, 04:03 PM
I am using a binding list that has all of the columns from a table as items.
I add columns to display only the data I want to see.
In some cases this works, and in others it displays my defined columns first then every column in the list.

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 06 May 2008, 11:13 AM
Hello jeff,

Thank you for contacting us.

To prevent the RadGridView from adding the rest of the fields as columns, just set the AutoGenerateColumns property of the corresponding GridViewTemplate to false:

radGridView1.MasterGridViewTemplate.AutoGenerateColumns = false

I hope this helps. If you have any additional questions, please contact us.

Sincerely yours,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
jeff
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Share this question
or