none
How to clear databindings of combobox RRS feed

  • Question

  • Hi i have a combobox with fixed items

    30

    60

    90

    etc.

    when form load i am binding this combobox with data from database

     cboTerms.DataSource = Ds1.tblAgent
                cboTerms.DisplayMember = "AGTNo"
                cboTerms.ValueMember = "AGTNo"

    in btnCancel event i want to clear this binding source

    and display fixed items.   here i am trying this but its still binded with database data

    cboTerms.DataSource = Nothing
            cboTerms.DataBindings.Clear()
            cboTerms.SelectedIndex = -1


    adil

    Saturday, December 29, 2012 12:57 PM

Answers

All replies