Thanks very much  !
I'll surly try this first thing on the morning (its 1AM here :-)

Shlomi


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Manish Jethani
Sent: Monday, April 18, 2005 10:58 PM
To: [email protected]
Subject: Re: [flexcoders] Generating dynamic datagrid based on dynamic query
result

On 4/18/05, Dzafer <[EMAIL PROTECTED]> wrote:


> For the datagrid I need to retrieve all the column names from the 
> provider to do something like this:

> 
>     If (  ...column[i] == "firstname")
> 
>     {}

Ah, sorry about that.  I see what you're trying to do now, and here's how
I'd do it:

  if (myDataGrid.columns[i].columnName == "firstName")
  {
    ...
  }

"firstName" is the name of the field in your data objects your column maps
to, and columnName is the property of DataGridColumn that stores that value.

http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/gridclasses/Dat
aGridColumn.html
http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/Tree.html

--
[EMAIL PROTECTED]
http://manish.revise.org/


 
Yahoo! Groups Links



 

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to