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

Get RadGrid from column

2 Answers 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sean Severson
Top achievements
Rank 1
Sean Severson asked on 08 Nov 2010, 03:59 PM
In codebehind, given a GridTemplateColumn, how do I get a reference to containing grid's datasource?

Sean M. Severson

2 Answers, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 09 Nov 2010, 01:50 PM
Hi Sean Severson,

You can get reference to the grid containing the template column using the Owner property of the grid column class and then use any of its properties including the DataSource.
templateColumn.Owner.DataSource;


Sincerely yours,
Marin
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
Sean Severson
Top achievements
Rank 1
answered on 09 Nov 2010, 02:14 PM
Thanks Marin!
Tags
Grid
Asked by
Sean Severson
Top achievements
Rank 1
Answers by
Marin
Telerik team
Sean Severson
Top achievements
Rank 1
Share this question
or