Hi :) I have a comboBox and I used the option Use Data Bound Items. I've set the Data Source, the Display Member and Value Member, but I need the comboBox to contain only the clients whose name begins with 'RO'. I've tried to use a Query but it's not correct and I don't know how to do it. Here's the query used:
SELECT denumire FROM dbo.client WHERE denumire.Substring(1,2)='RO'. I know that i should use parameters but i don't know how. Some help?
ComboBox- data bound item
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.


VulpesRank #55 · 29.2K reputationPosted Apr 5, 2013, 1:06 AM EDT
Vishal GilbileRank #268 · 9.4K reputationPosted Apr 5, 2013, 12:42 AM EDT
Just replace your query with the following
SELECT denumire FROM dbo.client WHERE denumire like 'RO'.
Hope that solves your problem.
With Regards,
Vishal Gilbile
Violeta Popa132 reputationPosted Apr 5, 2013, 12:57 AM EDT
Violeta Popa132 reputationPosted Apr 5, 2013, 1:13 AM EDT