New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Access underlying dataitem values of RadGrid rows
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: