Results 1 to 5 of 5

Thread: DropDownlist Acting Weird

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2006
    Posts
    74

    DropDownlist Acting Weird

    I have got 5 dropdownlist in my page. Each one of them is connected with a data adapter. At run time I am changing the initial querry of each drop down so as to get the data based on some condition given at run time. Upon selection from the data grid a new querry is fired which gets the data fromteh database and shows in the text boxes. Now my coding is perfect. Querry is also working the main problem is that 3 out of those 5 dropdownlists doesn't go to their respective selectedIndexChanged function where the querry is written. Secondly the selected value comes back to the first value no matter which value I am selecting. I have done this over 100's of time before I know in pageload I have to write everything between
    <highlight>
    If not ispostback then

    Endif
    </highlight>

    and I have to change the auto post back of every dropdownlist to TRUE. All ready done that. But only two of them are working properly the first three of them are not going to their respective functions upon selecting something from it.

    Earlier I was having some problem in getting the data because of some database validation violation. So I changed the Enforce Constraint property of Datasets to FALSE. So can anybody tell me why 3 of the datagrid is not behaving as they are suppose to behave while the other 2 are working properly. Even though all 5 of them have the same property exactly same.

  2. #2
    Fanatic Member MetalKid's Avatar
    Join Date
    Aug 2005
    Location
    Green Bay, Wisconsin
    Posts
    534

    Re: DropDownlist Acting Weird

    Each combobox will need its own data adapter. You can't reuse the same one. Each one also needs its own Binding Source, if that is the way you implemented it.
    If your problem is solved, please use the Mark Thread As Resolved under Thread Tools!

    Show Appreciation. Rate Posts!

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: DropDownlist Acting Weird

    You may think your coding is perfect, but we don't know that

    Show your code.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Apr 2006
    Posts
    74

    Re: DropDownlist Acting Weird

    Well all the combo boxes have their own data adapter and Data set......... Coding is perfect in the sense I have used it many times .............. After I select the data ....... IT's not even going to the function it is suppose to go on selecting an item from the list .............. One problem that can be there is ............... that right now the combo box contain just one item .......... so can that be the problem ........... because the other combo box that is working have many items and it works fine ........... So well if that is the problem can anyone tell me how to holve it ............... Because combo box is filled based on condition some condition return one row some return more.

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: DropDownlist Acting Weird

    Anup, if you want help, post your code. Don't describe it to us. It is irrelevant if it is perfect to you, you could have missed out on something that we may not miss out on.

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