0

Is it possible to have "Move-Up / Move-Down" buttons that can move a selected row in a dataGrid and move it to a different row in the database?

Where can I get more info or an example of this and what would this type of operation be called?

Thanks

dmschenk
  • 379
  • 1
  • 5
  • 19

1 Answers1

0
Is it possible to have "Move-Up / Move-Down" buttons that can move a selected row in a dataGrid and move it to a different row in the database? 

Yes, but you'll have to implement those buttons yourself, along with the algorithm to change your dataProvider as those buttons are clicked.

I created a list with these sort of buttons. We call it a DataSorter.

JeffryHouser
  • 39,401
  • 4
  • 38
  • 59
  • Can you give any more specific details on how to do this? I'm try to understand the process. – dmschenk Jan 21 '11 at 12:04
  • Create a column (or columns) with an itemRenderer that contains a button. Have the buttons dispatch an event, make sure it bubbles. In your event handler, modify the dataProvider accordingly. If you want something more in depth than that, I can provide consulting services.. – JeffryHouser Jan 22 '11 at 19:59