Access Column name on itemdatabound

2 posts, 0 answers
  1. Andy Green
    Andy Green avatar
    376 posts
    Member since:
    Aug 2008

    Posted 26 Jan 2018 Link to this post

    Hi

     

    I have a need to test the column name. Is it possible in the itemDatabound event to get to the actual column name that is being bound to?

     

    I'd expect this to change with each cell, or does the bind happen per row in one go?

     

    Andy

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4752 posts

    Posted 29 Jan 2018 Link to this post

    Hello Andy,

    The entire row is bound at one go, meaning that the ItemDataBound event is raised for each row. The following article explains how you can access cells and data for individual columns (the easiest way is to use the UniqueName of the column): https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows.

    Regards,

    Marin Bratanov
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top