No adam i want the value. The code provided by you will create a aggregte function over the column but i want particular aggregate value. actually i have to export the grid in txt format without using your rtf export method and for that i need aggregate values which are there in grouped rows .