Results 1 to 3 of 3

Thread: [RESOLVED] combo box binding problem

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    403

    Resolved [RESOLVED] combo box binding problem

    hi all,

    i'm having a problem binding my combo box to my data table

    i have these codes that binds my combo box.

    Code:
    combo.DataBindings.Add("Text", DataTable, "status")
    this code works well only when reading data... it automatically selects the correct item in my combo box to whatever was saved to that column in my table... however, when editing or updating the combo box text, it doesn't update.

    so then i tried these codes

    Code:
    combo.DataSource = Datatable
    combo.DisplayMember = "status"
    combo.Items.Add("MARRIED")
    combo.Items.Add("SINGLE")
    combo.Items.Add("WIDOWED")
    unfortunately this won't work with the reading and updating.
    considering that i have all my adapter insert, update, delete command set already and are actually working with databinds in a textbox control.

    any thoughts? thanks...
    Last edited by adshocker; Jul 28th, 2007 at 07:48 PM.

    VB Version: Microsoft Visual Studio 2008 Professional Edition
    .NET Version: Microsoft .NET Framework Version 3.5
    OS: Windows XP SP3

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