i m using a datagridview in c#.
i wana calculate total cost value from multiple rows of a single column in a data grid.
i m actually sending the rows of the grid to the datatable and then counts the value throw
foreach(datarow in dt.rows.count)
but it adds an extra value of the datatable eg 3, while total rows are eg 2 in the datatable.
hope u will understand the problem.