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

ItemDataBound problems....

2 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Todd
Top achievements
Rank 1
Todd asked on 18 May 2010, 01:03 AM

I'm using an older version of the RadGrid control - r.a.d.controlsQ3 2006 - v2.0.50727 and I'm trying to use OnitemDataBound to create some hyper links in my columns when my grid is loading. But I don't seem to have access to the GridDataItem and I'm unsure what namespace to import to get the code below to compile. Is there a different way to go about this with the older version of the grid control I'm using?  

protected void gridDataFeed_ItemDataBound(object sender, Telerik.WebControls.GridItemEventArgs e)
        {
             if (e.Item is Telerik.WebControls.GridDataItem)
            {
                GridDataItem dataItem = e.Item as GridDataItem;

                //CODE wil be implemented here to update the item 
            }
        }         

Any help would be greatly appreciated.
Thanks
Todd

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 18 May 2010, 08:24 AM

Hello Todd,

Since you are using the ASP.NET classic version, you need to add the "Telerik.Webcontrols" reference on cs page.

CS:

using Telerik.WebControls;

-Shinu.

0
Todd
Top achievements
Rank 1
answered on 18 May 2010, 04:07 PM
Duh...I totally missed that.. :)

Thanks for the help Shinu!
Todd
Tags
Grid
Asked by
Todd
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Todd
Top achievements
Rank 1
Share this question
or