Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.11 KB

grid-access-underlying-dataitem-values.md

File metadata and controls

29 lines (24 loc) · 1.11 KB
title description type page_title slug position tags ticketid res_type
Access underlying dataitem values of RadGrid rows
how-to
grid-access-underlying-dataitem-values
1443146
kb

Environment

Product RadGrid for ASP.NET AJAX

Solution

It is possible to acquire all raw data coming for a given record from the database using the ItemDataBound event handler. Outside of this event, this info is not present because the binding process is already over.

If you want to access this info in another event like SelectedIndexChanged or PreRender, you can set the Field Name you are interested in to be included in the DataKeyNames collection of the MasterTableView tag. Then, you will be able to use the GetDataKeyValue() method. More info you can find in the following section:

https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows#accessing-raw-field-data-and-key-values