Click here to Skip to main content
11,495,331 members (66,822 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: validation DataGrid
i have 2 column PRICE and PAYMENT in Datagrid
when i change value of 1 any cell in this Datagrid, other cells also change the value.
Example:
PRICE | PAYMENT
100 | 80 |
20 | 10 |
10 | 5 |

Note:
Row2.cells[0] = row1.cells[0] - row1.cells[1]
similar: row3.cells[0] = row2.cells[0] - row2.cells[1]
Column 1 have value read only. Only column 2 can edit value
Value each row change depends previous line.

when i change value row1.cells[1]= 60, it change below:
row2.cells[0]=40
row2.cells[1] = 40
row3.cells[0] = 0
row3.cells[1] = 0
Posted 22-May-11 18:10pm
duonglg481
Comments
Abhinav S at 23-May-11 1:13am
   
So what is your question?
duonglg at 23-May-11 2:33am
   
i want change value automatically when have a value change in that column

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

  Print Answers RSS
0 Dnyaneshwar@Pune 692
1 CHill60 318
2 Sascha Lefèvre 265
3 Nakul Chaudhari 236
4 OriginalGriff 191
0 Sergey Alexandrovich Kryukov 10,322
1 OriginalGriff 8,821
2 Sascha Lefèvre 3,889
3 Maciej Los 3,422
4 Richard Deeming 2,560


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 23 May 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100