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

Access Column name on itemdatabound

1 Answer 637 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 2
Andy Green asked on 26 Jan 2018, 11:53 AM

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

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 29 Jan 2018, 01:08 PM

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.
Tags
Grid
Asked by
Andy Green
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Share this question
or