B
Brian Mitchell
I am trying to save items from a datagrid to a database, but I want to give
the user control over the order of items.
For example if I have a grid with the items:
First
Second
Third
Fourth
Fifth
I would like for them to be able to arrange them in any order and I have
that part figured out on the grid. My problem comes when I want to save the
data to the database. What is the best approach for saving the order the
users has left it in so when they are returned they are still in the correct
order?
Originally I was going to put an 'order' field in the database and simply
order them 1, 2, 3, ..etc but what would happen the user modifies the order
at a later date, would I have to renumber all the items?
I am just looking for the best approach and you all are the experts so any
opinions would be appreciated.
Thanks!!!
Brian
the user control over the order of items.
For example if I have a grid with the items:
First
Second
Third
Fourth
Fifth
I would like for them to be able to arrange them in any order and I have
that part figured out on the grid. My problem comes when I want to save the
data to the database. What is the best approach for saving the order the
users has left it in so when they are returned they are still in the correct
order?
Originally I was going to put an 'order' field in the database and simply
order them 1, 2, 3, ..etc but what would happen the user modifies the order
at a later date, would I have to renumber all the items?
I am just looking for the best approach and you all are the experts so any
opinions would be appreciated.
Thanks!!!
Brian