It is a very common requirement to Group the data based on
particular column or cell data.
DataGrid, DataList or Repeater control have ItemDataBound
event with some logic or we can use helper function to do the same.
GridView control definitely has the edge over the above
controls. However, GridView control does not have ItemDataBound event that
would help us identify the cell item and group the data. In this sample we will
figure out which event of the GridView control to use as one of the solutions
for grouping the data. As a second alternative we will use the old and reliable
helper function to do the same for us.