How to do simple math in datagridview
Posted
by EB
on Stack Overflow
See other posts from Stack Overflow
or by EB
Published on 2010-04-17T04:09:08Z
Indexed on
2010/04/17
4:13 UTC
Read the original article
Hit count: 282
I am new to C#. I have a datagridview with 9 columns. I am simply trying take the value in column 5 and subtract it from column 6. Then display the result in column 9. It seems simple enough.I know it's done in excel all the time. But I just cannot figure this out. Do I need to create a new class with a method called calculate columns? or does the datagridview class have something already built in that can handle this? Again, I am new to C#. Any help would be appreciated.
Thank you,
Oceantrain.
© Stack Overflow or respective owner