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

Add Dynamic Columns in RadGrid

2 Answers 1104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dharmesh
Top achievements
Rank 1
Dharmesh asked on 04 Apr 2011, 01:29 PM
Hello everyone,

I am new to RadGrid Control and want to achieve following functionality.

I have one grid which i wanted to bind with various data sources so I dont have fixed columns structure but it will be decided when I bind grid with data sources.

So I want to implement Dynamic columns in Grid when bound to data source.

I have tried to add columns in "Page_Load Events" and grid bind into "rgDemo_OnNeedDataSource" event but its not working when I change page index.

So I want proper way of doing same.

How can i do same?

Thanks in advance

Dharmesh Solanki

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 04 Apr 2011, 01:41 PM
Hi Dharmesh,

Please review this help topic on how to create RadGrid instance programmatically. Give it a try and let us know if you need further directions/help.

Regards,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Dharmesh
Top achievements
Rank 1
answered on 04 Apr 2011, 02:06 PM
Hello Pavlina,

Thanks for pointing towards such a nice article.

Regards,

Dharmesh Solanki
Tags
Grid
Asked by
Dharmesh
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Dharmesh
Top achievements
Rank 1
Share this question
or