[FONT=Tahoma][SIZE=2][COLOR=#000000]First post here - believe me I searched high and low before asking this question…:z: [/COLOR][/SIZE][/FONT]
[FONT=Tahoma][SIZE=2][COLOR=#000000][/COLOR][/SIZE][/FONT]
[FONT=Tahoma][SIZE=2][COLOR=#000000]I know a similar question has been asked many times before but I have a datagrid that is fed from XML that is pushed to an array. the XML contains an <id> tag for each firstChild.childNodes. The dataprovider for the grid is the aforementioned array.[/COLOR][/SIZE][/FONT]
[FONT=Tahoma][SIZE=2][/SIZE][/FONT]
[FONT=Tahoma][SIZE=2]Without overly complicating my explanation, I’ve taken all the paths to each child node and assigned it to a variable. I then just created an array and pushed each variable to it. The end result is that the datagrid shows only the information from the XML that I want it to show. I use a listener event to track when a user clicks on any row in the datagrid, at which point it captures the value in that child’s <id> tag (a numerical value) and assigns that to a new “currentID” variable.[/SIZE][/FONT]
[FONT=Tahoma][SIZE=2][/SIZE][/FONT]
[FONT=Tahoma][SIZE=2]I then loop thru the original XML object searching for an <id> tag == currentID. This is working sweetly. When it finds the corresponding ID tag, it takes the paths to the other node info I want and sets it to some more variables. I then just info1.text = variable A, info2.text = variable B, etc.[/SIZE][/FONT]
[FONT=Tahoma][SIZE=2][/SIZE][/FONT]
[FONT=Tahoma][SIZE=2]Now I’d like to hide the <id> column from displaying in my datagrid. Problem is, when I remove it from the array, i no longer have a ID value to reference to go digging thru my nodes again after the fact. I guess I don’t really mind it, but it’s not something I really want in the grid. Tried the width thing - no luck. I need the ID info to load TO the drig, just not be displayed. If it doesn’t make it to the grid, I have nothing to reference.[/SIZE][/FONT]
[FONT=Tahoma][SIZE=2][/SIZE][/FONT]
[FONT=Tahoma][SIZE=2]Any suggestions on keeping the ID column from displaying without throwing my reference out the window?[/SIZE][/FONT]
[FONT=Tahoma][SIZE=2][/SIZE][/FONT]
[FONT=Tahoma][SIZE=2]Also, how does .width() work? I mean, I know you just specify getColumnAt(-column index-).width = a given amount of pixels, but when I try and set the width of one column how do I know what other columns will be impacted? If you set one column width, do you need to go specify them ALL?[/SIZE][/FONT]
[FONT=Tahoma][SIZE=2][/SIZE][/FONT]
[FONT=Tahoma][SIZE=2]Sorry for the long winded post. Hope to get some answers though. (-: Seems most other AS/Flash forums are nothing but repositories for unanswered questions.[/SIZE][/FONT]
[FONT=Tahoma][SIZE=2][/SIZE][/FONT]
[FONT=Tahoma][SIZE=2]v/r,[/SIZE][/FONT]
[FONT=Tahoma][SIZE=2]Steve[/SIZE][/FONT]