Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
In my windows application i have a combobox used for entering and selecting NAME for billing . it will enter empty NAME if we didn't enter any name . my problem is after entering blank name it will display blank space on combobox list items .how can i remove this empty space from display? please help me
Thanks in advance
Posted
Updated 9-Dec-10 20:05pm
v2

What's the issue? Just put a check/validation such that no 'empty' name is allowed to be entered if thats an issue. You can handle it at first level itself!
If this is not feasible for you for some reason, then while retrieving value for dropdown, just filter out the values that are not valid (empty names in your case)
 
Share this answer
 
Comments
Sandeep Mewara 10-Dec-10 3:08am    
So? I suggested if so, then filter that out while retrieving in query!!!
nothing to downvote in it :)
Khaniya 10-Dec-10 8:10am    
I agree with compassion
1. Better you avoid inserting empty text by using validation or
2. In sql query use where condition like this,
Where columnname <> ""
 
Share this answer
 
v2
Comments
Toniyo Jackson 10-Dec-10 3:53am    
send your query

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