Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For me ask,
I have a textbox

http://i235.photobucket.com/albums/ee313/duonglg/2-4.jpg[^]

When i add number 2 in this textbox, my datagrid show 2 row.

http://i235.photobucket.com/albums/ee313/duonglg/datagrid_change.jpg[^]

Column Price have price: 8080909, colum SUM is null
When i edit column SUM for row 1, ex: 80909. Then,Auto Colum SUM, Row 2=8080909 - value Row 1, and Column Price of row2= Column SUM row 2

Final Results:
http://i235.photobucket.com/albums/ee313/duonglg/result-1.jpg[^]

Similar for more 2 rows.
Help me. Thanks.





EXAMPLE BELOW:

I have a datagrid below


--------------------------------------------
PRICE | SUM
--------------------------------------------
500000 | 0 row1
500000 | 0 row2

when i edit column SUM for row1,example:

------------------------------
PRICE | SUM
----------------|--------------
500000 | 100000
500000 | 0

auto row2 of Column PRICE and Colum SUM change value below

------------------------------
PRICE | SUM
----------------|--------------
500000 | 100000
400000 | 400000


i want it do that. When i have more 2 row,so it do that
Total(SUM) = PRICE row1
Posted
Updated 13-May-11 16:46pm
v5
Comments
Programm3r 13-May-11 7:15am    
I have no idea what the problem is? I do not understand what you're asking? Could you please provide a more descriptive question??
wizardzz 13-May-11 14:31pm    
Hmm, Jedi speak...

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