Calculating Rows in a Datagrid to a textbox

  • Thread starter Thread starter Jamie Sutherland
  • Start date Start date
J

Jamie Sutherland

Hi,
In my datagrid i have a column that contains totals which I wish to to keep
a running total of in a text box elsewhere on my windows form. So if a row
is removed from the datagrid then the running total is reduced and if added
then it is added.
Also is it possible to take the data which is in the datagrid and put it
into a new DataTable? if so how?

Thanks
Jamie
 
Hi Jamie,

I'd take the data from the data source the grid is bound to. This way, it is
much easier to retrieve and manipulate the data.
 
Back
Top