How to use the rowdatabound in grid

2 posts, 0 answers
  1. Abdul
    Abdul avatar
    2 posts
    Member since:
    Jul 2011

    Posted 18 Apr 2012 Link to this post

    Hi,

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

    Thanks
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 18 Apr 2012 Link to this post

    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.
Back to Top