Checkbox in a datagrid

dr223

Registered User.
Local time
Today, 09:56
Joined
Nov 15, 2007
Messages
219
Hallo,

I have a checkbox which I called ToPay (design name), this checkbox is unbounded with other bounded fields in a datagrid called DgvToPay.

Also note, When the form is loaded the datagrid is populated and the checkbox checked always (i.e,. threestate set to True).

What I want to do is when Checkbox (3rd Column) is unchecked the respective AmounttobePaid field (4th Column) is set to £0.00. Instead of what is displayed on the datagrid.

Please could you tell me the coding and where to insert the code.

Thank you very much
 
By using the onclick event of the check box first determine the cell reference by using TextMatrix (row,col) - I think. Could be LastRow, LastCol not used one for a very long time. Then if the column is the column with the check box in it then tell it to do what you want for that row and column.

David
 

Users who are viewing this thread

Back
Top Bottom