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

radGridView auto gen columns and views

2 Answers 16 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul Gallen
Top achievements
Rank 1
Paul Gallen asked on 26 Sep 2008, 11:12 AM
Hi

I am new to the radGridView windows control, may I ask a couple of questions?

1. I have a data source of 20 columns/properties, but i only require to display 5 of them in the grid. I have manually added the columns that I require to the grid. When binding to the data source all of the remaining columns are loaded as well, how can I stop this auto generation of columns?

2. In the Property Builder design view of the grid I, have created a view and added the required columns. Can I add another view and add another set of columns (all from the same data source)?

Thanks

P

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 26 Sep 2008, 11:33 AM
Hi Paul,

Try setting the AutoGenerateColumns property to false and see whether all the columns are getting added from the DataSource.

ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server"  AutoGenerateColumns="false"  DataSourceID="SqlDataSource1"  > 
          


Thanks
Shinu.
0
Paul Gallen
Top achievements
Rank 1
answered on 26 Sep 2008, 11:50 AM
Sorry Shinu,

I have posted this thread to the wrong forum

apologies

P
Tags
Grid
Asked by
Paul Gallen
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Paul Gallen
Top achievements
Rank 1
Share this question
or