i have a gridview of data whereby one of the columns is a link. on clicking the link it will retrieve data for that userid and add as additional rows in the gridview.
the gridview also caters for sub total rows within the RowDataBound event.
On a link being clicked i am adding my new row(s) within the RowCommand event and i get the rowindex of the databound gridview item so initially the rows i am adding can be inserted in the right place.
Unfortunately once a sub total row has been added, the gridview rowindex does not cater for this so my added rows are a row out, then 2 rows out etc as more sub total rows are inserted above the userid being clicked on.
How can i cater for this scenario? By the time i grab the total subtotal rows from RowDataBound it obviously returns the total rows added to the complete bound grid.
I need to find out how many sub total rows are above the row clicked, or is there a more straightforward way of detecting thi ...
Go to the complete details ...