Assuming I understand what you're looking for correctly, here's what I came up with Basically, just create a column for each day in your datagrid and bind them to whatever value you want in your ArrayCollection. Then set the visible property for that day's column to true based on the values in the ArrayCollection. I hope this helps!?
Xml version="1.0" encoding="utf-8"?
Assuming I understand what you're looking for correctly, here's what I came up with. Basically, just create a column for each day in your datagrid and bind them to whatever value you want in your ArrayCollection. Then set the visible property for that day's column to true based on the values in the ArrayCollection.
I hope this helps!
Thanks I think that hit the spot!. Awesome – Doron Katz Mar 16 '10 at 4:21.
It sounds like what you want is something similar to the Outlook calendar. You want a column for each weekday, and a row for each hour in the day. DataGrids display the members of the collection bound to their dataProvider property as rows.
However, it seems that your ArrayCollection contains value objects that correspond to an event that occurs at a specific time, rather than a time that contains an event. I would write another value object to represent a time of day. This object would contain data members corresponding to each weekday that would hold the class name.
Public class TimeOfDayVO { public var monday:String; public var tuesday:String; public var wednesday:String; public var thursday:String; public var friday:String; } Then write a function that will create one of these objects for each hour in the day. Public function createTimeOfDayArray(oldArray:ArrayCollection) { for (var hour:int = 0; hour Day) { case "Monday": newArrayobj.time. Monday = obj.
Classname; break; //repeat for each day } } } Bind newArray to your DataGrid instead of the old array.
I didn't get the problem precisely but may be it is similar to a problem I had with advanceddatagrid some time back. May be the solution by Robusto might be useful here as well. Pasting it below fo your reference.
Basically, my problem is in my array collection back, I have fields for day, time, and class, and I want to present that in the datagrid. Now, presenting it with columns for each field, I will have time, day and class. What I would rather have is, time column and five day columns with each column being a day (i.
E Monday), rather than have all the days in the day column. – Doron Katz Mar 2 '10 at 21:26.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.