Hi,
I have master/detail record in hierarchical grid. When the user expands a row in the parent table the details record loaded. Now inside detail record when user press Add/Edit button it call Grid’s ItemCommand event, here I need to obtain the value of parent row that is not in column but those fields are binded with grid.
I know that we can find parent record’s key value using following code, but I want to find other column then key value.
GridDataItem parentItem = e.OwnerTableView.ParentItem;
Int32 IDValue;
Int32.TryParse(Convert.ToString(parentItem.GetDataKeyValue("Key")), out IDValue);