protected void grdViewItem_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
//totalbill += Convert.ToDecimal(e.Row.Cells[5].Text);
//totalbill += Convert.ToDecimal((Label)e.Row.FindControl("lbltotal"));
}
if (e.Row.RowType == DataControlRowType.Footer)
{
e.Row.Cells[4].Text = "Total Amount";
System.Globalization.CultureInfo info = System.Globalization.CultureInfo.GetCultureInfo("hi-IN");
e.Row.Cells[5].Text = totalbill.ToString("c",info);
}
}

Narasimha Reddy ChennupalliPosted Aug 11, 2015, 2:34 AM
Upendra Pratap ShahiPosted Aug 10, 2015, 1:18 AM
if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null)
{
MessageBox.Show(dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString());
}
Rajeesh MenothPosted Aug 9, 2015, 3:41 AM