Control for putting items in sequence?

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top