Just copy paste code , I have written for you
.aspx code:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDataBound="called" >
<Columns>
<asp:DynamicField HeaderText="Total" />
<asp:BoundField DataField="col1" HeaderText="Col1" SortExpression="col1" />
<asp:BoundField DataField="col2" HeaderText="Col2" SortExpression="col2" />
<asp:BoundField DataField="col3" HeaderText="Col3" SortExpression="col3" />
</Columns>
</asp:GridView>
.aspx.cs code
protected void called(object sender, GridViewRowEventArgs e)
{
int i = Convert.ToInt16( e.Row.Cells[0].Text);
int j = Convert.ToInt16( e.Row.Cells[0].Text);
int k = Convert.ToInt16( e.Row.Cells[0].Text);
e.Row.Cells[0].Text = (i + j + k).ToString();
}