On 10/10/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> I am using labelFunction for a column in a datagrid. How can I read the
> displayed value and not the real value directly from the dataGrid?

The only way I know of is to actually call the labelFunction if it's assigned.

> I am also wondering how to get values from the DataGrid in general. I need
> to render the DataGrid to a HTML table, I mean, read columns and rows from
> the dataGrid and have a string with the HTML syntax. I could not find
> anything such as getRow, and then read each column. So I am selecting each
> Row and then using the selectedItem property.

You could probably iterate over the data provider and pass each item
through the labelFunction.  I'm assuming you want to "export to HTML"
only those rows that are visible, in which case you should also look
into starting at vPosition instead of 0.


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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