Shinu, i don't think you understood the question - either that, or i don't. If you have a group header object, how do you find it's associated group footer? Your code shows how to find a data item, but i don't understand what that has to do with groups.
I'm in this exact situation - i need to make changes to each group footer, based on the group header. If you just grab all of the headers and all of the footer items using the MasterTableView.GetItems() function, the order in which the items are listed is not aligned unless you only have one group. If you have more than one group, they are in display order, not in associated order. For example:
Say i have records that have two classification columns: item_category, and item_type, with which we've grouped our rows. This makes the grid look like this:
Item Category 1 Item Type 1 Row 1 Row 2 FOOTER Item Type 1 Item Type 2 Row 3 Row 4 FOOTER Item Type 2 FOOTER Item Category 1
etc.
When you ask the grid for all group headers and all group footers, you get them listed in this order:
HEADERS: Item Category 1, Item Type 1, Item Type 2, etc
FOOTERS: Item Type 1, Item Type 2, Item Category 2, etc
So they are returned in the same order as they are displayed - which makes it a hassle to associate them together. While i can see logically how to do that, it would be nice if there was a built in function to do it.