471,306 Members | 1,306 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

retain checked state of checkbox

hi there

can't work out for the life of me at the mo why the code below doesn't
do what I want. the last matching PK it finds sets the checkbox and
this is the only 1 that displays. any ideas please.

int contractCounter = 0;

foreach(Timesheets.Contract oContract in allContracts)
foreach(Timesheets.Contract aContract in contractsOfDelegate)
CheckBox selectedContract =
selectedContract.Checked = false;

if(oContract.PK == aContract.PK)
//Check the box
selectedContract.Checked = true;


Nov 30 '05 #1
1 1307
Sorry I've sorted this out.

Nov 30 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Pete | last post: by
2 posts views Thread by Jerome | last post: by
4 posts views Thread by RodBillett | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.