Hi, for that you can add footer template in your grid view and take rowdatbound event of the gridview at server side. in the rowdatbound event you can check each row this way protected void GVLeavelist_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { // Fetch each row here and calculate the data ViewState["Total"] = 'Your Value'; } else if((e.Row.RowType == DataControlRowType.Footer) { // then used viewstate value to display the total } }
D
dongavipul
@dongavipul