Control for putting items in sequence?

  • Thread starter Thread starter Ronald S. Cook
  • Start date Start date
R

Ronald S. Cook

Is there an intinsic or 3rd party Windows control you would recommend for
the following?

I'm wanting to create a form where a user can set the order of hundreds of
pens. I was thinking about some sort of drag and drop that automatically
pushes down the list, etc.

Available Pens:
101
105
107

Pen Sequence:
1) 123
2) 198
3) 197
4) 104
5) 187

Thanks for any thoughts,
Ron
 
Is there an intinsic or 3rd party Windows control you would recommend
for the following?

I'm wanting to create a form where a user can set the order of
hundreds of pens. I was thinking about some sort of drag and drop
that automatically pushes down the list, etc.

You could databind a datagrid, listbox, etc. etc. to a binding source.

A binding source supports any object which implements IList such as
SortedList, DataSets, etc - which all have built in sort features.

So what you'll do is add an item to the underlying datasource. That'll
trigger an update event via the binding source, which in turn will update
your GUI :-)

If you need a custom sort, you can implement IComparable.
 
Back
Top