Use itemRenderer, inline or custom For example: this is your datagridcolumn <mx:AdvancedDataGridColumn dataField="aircon" headerText="AC" width="50" itemRenderer="com.renderers.DistRenderer"/>
Here is this renderer implementation: DistRenderer.mxml <?xml version="1.0" encoding="utf-8"?> <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" paddingLeft="16" verticalAlign="middle"> <mx:Script> <![CDATA[ import com.live.flats.model.ModelLocator; /** * Keep track of the currently selected item. */ public function getBoolValue(distId:Object):Boolean { //implement your logic here.. return bool; } ]]> </mx:Script> <mx:CheckBox selected="{getBoolValue(data.distId)}"/> </mx:VBox> cheers!! Manu. Laila Towailib wrote: > > ---------- Forwarded message ---------- > From: Laila Towailib <[EMAIL PROTECTED]> > Date: Sat, May 31, 2008 at 8:37 PM > Subject: dataGrid and checkBox > To: flexcoders@yahoogroups.com > > > *what is the best way to add a checkbox field to each row of a datagrid > and > read what is checked ? > I really need this for my project.* > > -- View this message in context: http://www.nabble.com/please-need-help-with-dataGrid-and-checkBox-tp17586826p17587005.html Sent from the FlexCoders mailing list archive at Nabble.com.