hi
is it possible to make the last row of DataGridView as Sum the column ?
and that the last row always will show ?
thank's in advance
hi
is it possible to make the last row of DataGridView as Sum the column ?
and that the last row always will show ?
thank's in advance
To do this you have to set ShowFooter attribute of True
and then in code behind add your desire value in the footer
<asp:GridView ID="grdList" runat="server" ShowFooter="True" >
// other part of gridview codes e.g columns or blah blah blah
</asp:GridView>
// in code-behind
int totalValue = 2 * 10;
grdList.Columns[2].FooterText = totalValue.ToString();