Sometimes it is best to only change one thing at a time. Does it still get stuck if it isn’t in a WindowedApplication?
Well, yes, the datagrid was stuck in the upper left corner, which was annoying to me.
I changed it to WindowedApplication so I could test loading my own sqlite data. I deleted everything out of your code related to dragging items as well. Too much confusion there.
My substitutions work just fine, just can't relocate the grid. I have begun to think the file is corrupt now.
I have another simple question. Can you please expain this line to me: owner.addEventListener("selectionChange", selectionChangeHandler);
I think 'owner' refers back to the datagrid. The datagrid is the owner of the itemRenderer (?). But I don't understand the use of the custom event. I've never seen that structure (an unofficial Flex event) and I can't follow it back to it's origin in your code to understand it's workings.
I looked at my example code. The DataGrid is in a VerticalLayout so x,y is not honored. Change to BasicLayout if you want to use x,y.
The DataGrid “owns” the itemRenderer, but is not its immediate parent.
SelectionChange is an event dispatched from the DataGrid. I could also have written GridSelectionEvent.SELECTION_CHANGE
Ah, okay. Thanks.
Do you get something for all your points? A bonus, a vacation, a plaque? (grins).