RadGrid for ASP.NET AJAX

RadControls for ASP.NET AJAX

There are cases in which you may want to identify to which level of the hierarchy the currently created/bound row is. This is suitable when you would like to undertake a task (formatting a row, binding values to its column editors or attaching client events to them when a row is in edit mode, etc.).To identify the table to which the current row belongs/is bound (in the ItemCreated/ItemDataBound handler), you can use the DataMember property of the respective GridTableView (under NET 2.x/3.x when you do not populate the nested table content through data source control) or the DataSourceID property (.NET 2.x/NET 3.x). The third option is to utilize the Name property of each GridTableView (applicable for NET 2.x and NET 3.x) assigning unique value for it beforehand.Below are some sample code snippets:

Without data source controls

With data source controls

Using Name property