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

Grid Template Column?

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mahesh
Top achievements
Rank 1
Mahesh asked on 04 Mar 2009, 12:41 PM
Hello,
May be this is a simple question but I am not getting solution.
How to find template Column in any grid event(DataBound etc.)?
Is it necessary to use event.Can't I use GridItemCollection like MS grid?
Please give solution for both questions?
Thanks in advance.
-Mahesh

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 04 Mar 2009, 01:01 PM
Hello Mahesh,

Please examine the following link:
Accessing cells and rows

Example:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    if (e.Item is GridDataItem) 
    { 
        GridDataItem item = e.Item as GridDataItem; 
        string celltext = item["myTemplateColumn"].Text 
    } 

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Mahesh
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or