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
Loading
VasanthPosted Apr 6, 2010, 2:29 AM
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.