lincstech
asked on
Calculating column datagridview
Hello,
How do you calculate an entire column in a datagridview in vb.net ?
How do you calculate an entire column in a datagridview in vb.net ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
decimal a=0, b=0, c=0;
for (int i = 0; i < (gridview1.Rows.Count); i++)
{
a = Convert.ToDecimal(gridview
c = c + a; //storing total qty into variable
}