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

[Solved] convert datatable to griditem

1 Answer 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
bits
Top achievements
Rank 1
bits asked on 12 May 2008, 04:40 AM
Hi I need to convert datatable item to griddataitem. How should i convert it....

The problem is on page load i need to bind a data table item to a griddataitem...

please respong

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 May 2008, 05:47 AM
Hi Bits,

Try accessing the GridDataItem in the ItemDataBound event as shown below.

CS:
 protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)  
    {  
        if (e.Item is GridDataItem)  
        {  
            GridDataItem item = (GridDataItem)e.Item;  
            //...  
        }  
         
    } 


Princy.
Tags
Grid
Asked by
bits
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or