Use datagridview or list box - need is for multi-column, single row select

TSFLLC
TSFLLC used Ask the Experts™
on
I want to modify the flexibility of my custom autocomplete.  It currently only accomodates single columns.
I am currently using a list box.  I would need to dynamically change # of rows.

Would I be better served modifying to a gridview.  However, I would like to have a divider between the
columns and no grid lines between rows.

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014

Commented:
Bit more description please. Autocomplete for what? Textbox?

Author

Commented:
Autocomplete strictly for text box usage.

Do not like the inherent autocomplete in VB.  Don't want to go there.  Like mine, but want to enhance it.
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

Author

Commented:
CodeCruiser,

Have changed my mind about the autocomplete with the VB combobox.  I would like to replace my custom dropdown list to a combobox w/multiple columns.  Still need to figure out how to create multi-column dropdown where the first column (assume it's always this way) is the primary/autocomplete column.

If I need to void this posting and create a new...I will.
Most Valuable Expert 2012
Top Expert 2014
Commented:

Author

Commented:
Sorry IJZ,

I neglected to look at those links again today.  Alot on the plate.  I realized after my last posting that they were more geared towards comboboxes.

Therefore the results are more geared to what I need after all.  Thanks CodeCruiser.

Author

Commented:
You guys,

From looking at the links provided, each link is referring to using a custom combobox instead of the one inherent to VB.  Right?  About 40-50 forms in my application are using an existing CUSTOM autocomplete dropdown.  I'm jumping out of the kettle into the fire.

Since opening this thread I've stripped out my autocomplete listbox and re-created the fields using VB's combobox w/autocomplete.  Works flawlessly.  Now I find that VB's combobox does not accomodate multiple columns for dropdown?  Am I right?

If this is the case, what kind of #(*@ is this?  The largest software company in the world doesn't offer this in their Visual Studio?  Please tell me I'm wrong.  Not trying to be a drag, just trying to get the job done without re-inventing the wheel.

Thanks.

Author

Commented:
Forgot something.

>>Since opening this thread I've stripped out my autocomplete listbox and re-created the fields using VB's combobox w/autocomplete.

Just in ONE of my 40-50 forms.
Most Valuable Expert 2012
Top Expert 2014

Commented:
>The largest software company in the world doesn't offer this in their Visual Studio?

The largest company develops the tools, platform etc and any controls that they provide are a bonus. This is the reason so many companies(Devexpress, Telerik, ComponentOne etc) exist to serve such requirements.

Author

Commented:
I can appreciate that.  I actually use one of ComponentOne's products.  And I know, where do you draw the line as to what should be basic inclusion in their product vs. more elaborate desires, but why would they not include multi-column capability if they're going to include it in a datagridview and listbox?  Just saying.
Most Valuable Expert 2012
Top Expert 2014

Commented:
Does the componentOne control set not include the multicolumn combobox?

Author

Commented:
It's for VB6 projects.


>> ....and any controls that they provide are a bonus.

Once the framework/platform issue is out-of-sight/out-of-mind what's more important than the components (controls) the end-user sees?

Maybe I'm a little jaded having spent 10 hrs this weekend stripping & replacing only to be up against this issue.  Guess I just need to move on.
Most Valuable Expert 2012
Top Expert 2014

Commented:
Or may be you should have done some more evaluation of the options :-)

Author

Commented:
Hindsight's 20-20!!  :)

Thanks.

Author

Commented:
Both deal with a custom combobox and deserve equally although I was hoping for a workaround with the existing VB combobox.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial