Calculating Rows in a Datagrid to a textbox

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
 
D

Dmytro Lapshyn [MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top