I am using VS2010 and its .NET Framework 4, for Win Application.
I need to make a couple of Listbox Controls that are loading a couple List<strings> in them.
- The problem is how do I update every other listbox when I sort 1 listbox?
Lets say I have only 10 Listboxes. Everything is INLINE with the 1st listbox as default. The order of the 1st listbox is represented in the rest of the other listboxes. When I sort the 4th listbox, every line in this specific list will sort BUT HOW I keep the same INLINE position of the other listboxes?
What I have tried:
For example, this is the database text that it will process and split into each List<string>:
Name_\Amps\Vol\_Mark\_Type_____\Pack
SI2302\2.5A\20V\A2SHB\N-channel\SOT-23
SI2303\1.4A\30V\A3SHB\P-channel\SOT-23
SI2305\3.5A\08V\A5SHB\P-channel\SOT-23
Everything is sorted by Name(1st listbox) by default, and is INLINE with it.
But when I sort by Mark, every other listbox must keep the same alignment.
My question to you is:
1- is it already a component that is keeping this alignment for me in VS2010?
2- what is the logic or the code to make it from scratch?
I already have an idea but I want to check first with you here.
Thank you.