Ive got a gridview showing some totals at the footer of it. The totals are calculated in the RowDataBound event.
Depending on some conditions, Im showing or hiding some columns in the grid at run time. When this happens (showing or hiding) the RowDataBound event is triggering again causing the totals to calculate twice and showing double the amount.
Me.gv_data.Columns(0).Visible = True '// Edit column
Me.gv_data.Columns(1).Visible = True '// Delete column
How can I stop that event for triggering when I hide a column??