I've got a DataTable with two fields: groupId and groupDescription ... I
then do this:

DataSet dsGroups;
... initialize dataset ...
cbGroups.DataSource = dsGroups.Tables[0];
cbGroups.ValueMember = "groupId";
cbGroups.DisplayMember = "groupDescription";

It all works fine, however when I drop it onto a tab page in the tab
control, and add a second tab everything goes awry.

If changing between tab 1 & tab 2 (with the checked list box on tab 1) upon
returning to tab 1 the state of the checked items is cleared.

Is there a simple reason as to why this is happening... I'm implementing a
dodgy work-around as we speak but this shouldn't happen in the first place I
feel. And I've checked and the box is never being repopulated again, only
happens upon the form loading.

Cheers,

- Alex

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to