Hello all,

 

I placed a button in a Datagrid but when use the ( click event ) appear a
problem 

 

----------------------------------------------------------------------------
---------------------------------------------------------

The code:

<mx:DataGrid id="DG" dataProvider="{myData}" width="500" editable="true">

<mx:columns>

<mx:DataGridColumn width="70" editable="false">

<mx:itemRenderer>

<mx:Component>

 <mx:HBox horizontalAlign="center">

<mx:Button label="save" click="Update()" /> </mx:HBox>

 </mx:Component>

 </mx:itemRenderer>

</mx:DataGridColumn>

                                <mx:DataGridColumn dataField="MemberID"
headerText="Member ID"  visible="false" />

                                <mx:DataGridColumn dataField="MemberName"
headerText="Member Name" />

                                <mx:DataGridColumn dataField="MemberAddress"
headerText="Address" />

                                <mx:DataGridColumn dataField="MemberTel"
headerText="Telephone" />

                </mx:columns>

</mx:DataGrid>

 

----------------------------------------------------------------------------
---------------------------------------------------------

The Error message:  Call to a possibly undefined method Update.

 

Plz tell me what is the problem.

 

Thanks

Abdullah Abdelhay

 

Reply via email to