hi , iam using asp.net with c#
in my gridview at the form load iam displaying data, 1st column is product name, 2d column is price,
3rd column is quantity, 4th column is total. in total colum iam using gridview _rowdatabound event and calculating the grand total. but i want when user check or unckeck the checkbox then i want that rows total as grand total
can you give example which helps me
Calculate the checked rows data in gridview using asp with c#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VasanthRank #1,487 · 1.1K reputationPosted Apr 5, 2010, 10:29 PM EDT
private void fnCheckedItems(GridView gv)
{
CheckBox chk;
foreach (GridViewRow row in gv.Rows)
{
chk = (CheckBox)row.FindControl(ctrl);
if (chk.Checked)
{
//count the grand total
}
}
}
Revert me if you need more info regarding the clarification.
Please mark as answer if its help you.