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

> I tried myDatagrid.rows, no results but with rowCount it returns there
> are x number of rows.

What do you mean by "no result"?  The following code works just fine. 
Clicking on the button shows the string representation of the row
objects one by one.

<?xml version="1.0" encoding="iso-8859-1"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
  xmlns="*">
  <mx:DataGrid id="dg">
    <mx:dataProvider>
      <mx:Array>
        <mx:Object name="Manish" />
        <mx:Object name="rockmoyosa" />
      </mx:Array>
    </mx:dataProvider>
  </mx:DataGrid>
  <mx:Button click="foo()" />
  <mx:Script>
    function foo()
    {
      var i:Number;
      for (i = 0; i != dg.rows.length; i++)
        alert('' + dg.rows[i]);
    }
  </mx:Script>
</mx:Application>


 
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