New user !!!
I have a web combo that only returns 2 rows via a LINQ statement, wonderful, but the drop down list is bigger than that with a blank area to the lower portion of the frame, there must be a way to only have it at the size of the returned values, ie. If there are four returned rows I only want the drop down to be the size of four rows and no more. Can you help please, thanks.
OK, I have managed to code the solution as I could not find a quicker way to do this :
if
(WebCombo.Rows.Count <= 6)
WebCombo.DropDownLayout.DropdownHeight = (WebCombo.Rows.Count * 24);
Here 24 is the pixel size of a single entry in the dropdown. This works well enough for now.
There is another issue with the WebCombo that I can't sort alone.
I have a return of say 50 values and when I use 'Simple' for the type ahead and select a value in the list, it always reverts back to the first selection in the list after some kind of timout???
Also if I select a value without using the mouse and then 'TAB' away from the control it does not hide the drop down and moves caret focus to the next field which is hidden underneath the dropdown. This does not send the correct info to the postback and therefore my next control has the wrong data in it !
Thanks for your help in advance.
So in conclusion all I am trying to do is
1. Populate the control (done)
2. Select a value, not using the mouse (done)
3. Tab away from the control, automatically hiding the dropdown of the combo and move to the next control with the correct values being sent from the first control to poulate the second.