|
-
Oct 18th, 2007, 01:56 AM
#1
Thread Starter
Lively Member
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.
-
Oct 18th, 2007, 09:17 AM
#2
Fanatic Member
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!
-
Oct 18th, 2007, 10:27 AM
#3
Re: DropDownlist Acting Weird
You may think your coding is perfect, but we don't know that 
Show your code.
-
Oct 23rd, 2007, 10:59 PM
#4
Thread Starter
Lively Member
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.
-
Oct 25th, 2007, 03:43 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|