Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have various DDLs which give the user access to previous entries in the row being edited. It works fine, except that it would look better if the DDLs appeared as just the arrow without the text alongside it. I assume the DDLs automatically fill this text with whatever the first entry is, based on the SQL command the DDL draws from, but can this be disabled or adjusted somehow?

Edit: Immediately after posting this I found out you can restrict the width of the DDL to force it to display just the arrow. Leaving this up in case someone else comes along looking for the same answer.

What I have tried:

Setting the DLL's OnClick to run a function that executes the correct SQL command. For some reason this resulted in the DDL's arrow doing nothing at all when clicked.
Posted
Updated 28-Jun-18 3:37am
v2
Comments
Richard Deeming 28-Jun-18 11:54am    
If you just want the list to be blank until the user selects an item, then add a blank item to the start of the list.

Changing the width so that the user can't see which item is selected sounds like a bad UI.
OlivesForDinner 28-Jun-18 13:19pm    
It's visually identical to adding a blank item, as far as I can tell. It merely results in the arrow box displaying with nothing next to it, which is what I was after. Why is that bad?
Richard Deeming 28-Jun-18 13:24pm    
Because the user can't see what they've selected.
OlivesForDinner 28-Jun-18 13:27pm    
No. What you've selected is visible. As I said, only the button is affected.
Vincent Maverick Durano 28-Jun-18 22:05pm    
Displaying just an arrow might confuse some of the users viewing it. They might think the DropDowns does not contain anything in it. If you don't want to add a blank entry on the first item, you could add an item that displays something like "Select" or "------" just to draw users attention to select something from the DropDown.

Anyway that's just my point of views. If what you have right now works for your client then there's no one stopping you ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900