all groups > flash data integration > july 2006 >
You're in the

flash data integration

group:

dataGrid cellPress event


dataGrid cellPress event najh
7/10/2006 2:48:47 PM
flash data integration: (flash 8 pro)
I have a dataGrid which i've populated from an XML file.

I want to be able to click a row and to use information from that row. This
seems fine at first, but then when I click the headers to change the sort
order, the data isn't in the same order as the XML file anymore, so the
itemIndex doesn't refer to the item anymore - only the position in the
datagrid. Does anyone have any idea how to resolve this?

Thanks!
Re: dataGrid cellPress event -->dan mode
8/2/2006 8:56:22 AM
Najh,
I'm not sure how the sorting would effect your xml file but, you can turn
sorting off for any given column.

myGrid.getColumnAt(1).sortable = false;


--

Dan Mode
--> Adobe Community Expert
*Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio* http://www.tornadostream.com
*Must Read* http://www.smithmediafusion.com/blog


[quoted text, click to view]

AddThis Social Bookmark Button