Results 1 to 1 of 1

Thread: CheckedListBox not behaving normally

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2004
    Posts
    39

    CheckedListBox not behaving normally

    Hi There

    I have a form with 2 Tabs. Each one of the Tabs has got a multicolumn checkedlistbox control.

    The controls are drawn on the screen at run time using values from 2 views of the same table.

    The following is part of the code I use to draw my controls:

    VB Code:
    1. Me.chkListBox1.DataSource = dvMyDataView  'the table view
    2. Me.chkListBox1.DisplayMember = "Display_Description"  'column Name to display on control
    3. Me.chkListBox1.ValueMember = "Checked"   'column name to store checkstate

    The idea is to assign the checkstate to the column named "Checked" each time I click a box on the control.

    My controls are drawn on the screen and I can check/uncheck my boxes. However, on leaving the current Tab go to the next one, I realise that my checkbox is cleared and becomes blank.

    Any ideas as to why this is happening?

    Your help will be appreciated.

    Thanks
    Last edited by tina33; May 16th, 2004 at 01:54 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width