Click here to Skip to main content
15,886,857 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
on a form i have placed
1. Combobox(for Column Name)
2. Combobox for Searching Criterai (e.g like, =, not equal, In, <, >)
3. Text box (specific word or phrase searching)
4. Combobox For and or OR Operator
5. Button: with event which will generate above 1,2,3,4 once again

Now i want to make a searching form using above thing. I want to make General Query for all.
User can
(1)user select any column name
then (2) select his searching criterai
then (2) type the phrase or word
then (3) Select the operator
if user want more then click the button and add more 1,2,3,4 group of control again and again fill by his requirements.
Posted
Comments
Thanks7872 17-Oct-13 8:03am    
And? Where is the issue?
Muhamad Faizan Khan 17-Oct-13 9:37am    
the issue how to make it?
OriginalGriff 17-Oct-13 8:22am    
Good for you!
If you are waiting for permission, then consider it given.
If you want help, then you need to tell us what part of this is giving you trouble, what you have tried, and where you are stuck.
Use the "Improve question" widget to edit your question and provide better information.
Muhamad Faizan Khan 17-Oct-13 9:39am    
You are right. But i am stuck in the Beginning . how to start. Do i need to make each condition for combobox value?
Govindaraj Rangaraj 17-Oct-13 11:00am    
"Do i need to make each condition for combobox value?" - YES!

1 solution

"You are right. But i am stuck in the Beginning . how to start. Do i need to make each condition for combobox value?"

How I would start is to create a UserControl to handle it all - this makes your form code easier as you only have to add a single control when your user adds another "group". I would dump the combobox for AND / OR and replace it with two buttons (outside the UserControl) which replace the single button to add a new group.

Within the "group" you then just need to feed in the column names when you construct it and provide a "query" method to read out what the user has selected.

Does that make sense?
 
Share this answer
 
Comments
Nelek 17-Oct-13 11:18am    
[quote]Does that make sense?[/quote]
actually not ;) :evil: , but anyways my 5 ;P

I know, I know... I can sometimes be a [censored] :laugh:
OriginalGriff 17-Oct-13 11:20am    
Can't we all? :laugh:
Muhamad Faizan Khan 18-Oct-13 0:47am    
Fine But Coding Demo require for me

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