Re: drag/drop after sort



"A. Pagaltzis" <pagaltzis gmx de> writes:
* Dan Espen <dane mk telcordia com> [2004-12-31 17:17]:
The problem I have is after I sort by clicking on a column
header, I can no longer drag/drop rows to rearrange them.

I'll wax theoretical here: you can't DnD because sorting columns
affects the display, not the model. The order you see on screen
after you click a column header is not the order the data
internally has, so DnDing rows in that case wouldn't make any
sense. What you want to do is register handlers for clicking
headers which actually sort the model rather than just changing
its display.

I suspect it's something like that, but after I sort the
rows by clicking on the column header, I can see the new order
by walking thru the SimpleList.

The same with the drag/drop, after I move a row, I can see the
new order by walking thru the SimpleList.

-- 
Dan Espen                           E-mail: dane mk telcordia com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]