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

RadGrid Auto generate columns

1 Answer 361 Views
Grid
This is a migrated thread and some comments may be shown as answers.
hamda
Top achievements
Rank 1
hamda asked on 26 May 2010, 07:27 AM
Hi,

I have a grid that shows the columns at runtime and it's not connected to object data source. I want to modify these columns like changing the header text or making some columns hidden but I can't. Also in some columns I want to show other data than the shown, for example if it was showing numbers under country column i want it to bring the name of the country instead.
How to modify run time generated columns?? Please Help :(!

_Hamda

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 26 May 2010, 04:09 PM
Hi Hamda,

You can customize the properties of auto-generated columns at runtime by providing a handler for the grid's ColumnCreated event. For more information how to achieve the desired result, please examine this help article:
http://www.telerik.com/help/aspnet-ajax/grdusingcolumns.html (Auto-generated columns section)

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.
Tags
Grid
Asked by
hamda
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or