Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a case were I would like to make a rather odd calculation in WPF DataGrid column.
In column A I enter the data by hand and in column B, I would like to make the following calculation:
cell B2 = cell A1 + cell A2

I am thinking of making this calculation by pressing the button, and not when enter the data in column A.

Any ideas?

Thanks
Posted
Updated 11-Nov-11 22:32pm
v2
Comments
Sergey Alexandrovich Kryukov 12-Nov-11 1:26am    
Well, nothing wrong with that, but also nothing special; this is like in a spreadsheet. So, what's the problem?
--SA
Dimitris Nemtsov 12-Nov-11 2:19am    
Exactly like excel spreadsheet, I,ve searched all over the .net but didn't find anything usefull.. Ant suggestion or better snippet?

1 solution

Itz pretty simple by writing the calculation logic at button_clicked event.
 
Share this answer
 
Comments
Dimitris Nemtsov 12-Nov-11 4:20am    
Beside, saying itz pretty simple does anyone has a solution to that problem? Or better an example?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900