Hey all,
So I am putting together a form that will allow a user to filter the results returned from SQL server based on a selection.
I have the data in a datagridview and that is all working fine.
I would like to put a number of controls at the top to allow the user to filter the results however they desire.
I know what fields they will be filtering on and which ones they want as a string search, multi selectable etc.
I am fine with working out the logic that rebuilds the SQL string that pulls the data...
What I am not sure about is which control is best for the multi selection.
Example filter field : Product Category(PCAT)
Requirement : Select none, a single or multiple categories to display from the data set
ListView, Listbox and checkedlistbox dont allow for a datasource to be bound directly but offesr the best interface for a user to select multiple records..
Combobox allows for datasource but isnt a suitable for multi selecting.
Is it better to use the listview etc and just loop through to add all the items?
Reg
Using .net 2.0 & visual studio 2010
So I am putting together a form that will allow a user to filter the results returned from SQL server based on a selection.
I have the data in a datagridview and that is all working fine.
I would like to put a number of controls at the top to allow the user to filter the results however they desire.
I know what fields they will be filtering on and which ones they want as a string search, multi selectable etc.
I am fine with working out the logic that rebuilds the SQL string that pulls the data...
What I am not sure about is which control is best for the multi selection.
Example filter field : Product Category(PCAT)
Requirement : Select none, a single or multiple categories to display from the data set
ListView, Listbox and checkedlistbox dont allow for a datasource to be bound directly but offesr the best interface for a user to select multiple records..
Combobox allows for datasource but isnt a suitable for multi selecting.
Is it better to use the listview etc and just loop through to add all the items?
Reg
Using .net 2.0 & visual studio 2010