Hi,
create datagridcolumn object in action script loop based on ur data
set(from database)
for loop{
DataGridColumn dgc = new
DataGridColumn();
dgc.width = 200;
dgc.headerText = ""
dgc.dataField = key;
dgc.setStyle("headerStyleName","centered");
dgc.showDataTips=true;
dgc.dataTipFunction = ;
datagrid.addChild(dgc)
}
On Aug 4, 6:39 pm, neethu n <[email protected]> wrote:
> Hi All,
> I have a raw collection of objects, I want my data grid to show columns in
> the order required by the client and addition of the these columns should be
> from action script and not mxml tags like <mx:columns> and
> <mx:DataGridColumn> since my collection comes dynamically from the database
> and i cant tell before hand how many properites does each object contain and
> what are they are (ie I cant tell what are the columns and their data.) All
> my googling gives info about vertical sort to columns in datagrid but not
> horizontal sort. Can any one please help me.
>
> if i dont use the tags and assign the dataprovider through as3, columns
> appear in alphabetical order by default , atleast disabling this
> alphabetical order would be helpful. Any one please suggest
> Eagerly waiting for help.
> Thanks a lot in advanced.
> Neethu
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.