I am trying to figure out how to determine which item parent or child grid item is being process in the ItemDataBound event. My data set has two tables and unique names but trying to use: e.Item.OwnerTableView.DataMember does not give me the name of the table. For the detail records I am using Dim parentItem As GridDataItem = e.Item.OwnerTableView.ParentItem to determine if it is a parent or child item but I need to change the header property but can not figure out how to do this. I tried using Dim headeritem As GridHeaderItem = DirectCast(e.Item, GridHeaderItem) to determine parent or child but am not sure how to accomplish.
Any ideas how I can easily determine at the header level if I am processing the parent or child header?
Thanks
John