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

How to use the rowdatabound in grid

1 Answer 346 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Abdul
Top achievements
Rank 1
Abdul asked on 18 Apr 2012, 08:37 AM
Hi,

I want to know how to use the OnRowDataBound Event in this telerik Grid Controls.

Thanks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Apr 2012, 09:12 AM
Hello Abdul,

ItemDataBound is fired when RadGrid binds to data. In ItemDataBound data is available in the cells' text or input controls.
You can set the EventHandler for the ItemDataBound event in the aspx and access the GridDataItem in the ItemDataBound event.
aspx:
<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" OnItemDataBound="RadGrid1_ItemDataBound">
</telerik:RadGrid>
C#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
}

Thanks,
Shinu.
Tags
General Discussions
Asked by
Abdul
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or