Inline Item Renderers for DataGrid : DataGrid Renderer « Grid « Flex






Inline Item Renderers for DataGrid

Inline Item Renderers for DataGrid
       

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        
            
            [Bindable]
            private var myDP:Array = [
                {label: "Customer 1", selected: true},
                {label: "Customer 2", selected: false}
            ];
            
      
    </mx:Script>
    
    <mx:DataGrid dataProvider="{myDP}">
        <mx:columns>
            <mx:DataGridColumn dataField="label" headerText="Label" />
            <mx:DataGridColumn dataField="selected">
                <mx:itemRenderer>
                    <mx:Component>
                        <mx:VBox verticalAlign="middle" horizontalAlign="center">
                            <mx:CheckBox />
                        </mx:VBox>
                    </mx:Component>
                </mx:itemRenderer>
            </mx:DataGridColumn>
        </mx:columns>
    </mx:DataGrid>
    
</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Inline item renderer that contains multiple controlsInline item renderer that contains multiple controls
2.NumericStepper renderer and editor for DataGridNumericStepper renderer and editor for DataGrid
3.DateField renderer and editor for DataGridDateField renderer and editor for DataGrid
4.CheckBox renderer and editor for DataGridCheckBox renderer and editor for DataGrid
5.Use Image control as item rendererUse Image control as item renderer
6.Use Component as itemRenderer for DataGridUse Component as itemRenderer for DataGrid
7.Use two data fields in one itemRendererUse two data fields in one itemRenderer
8.Disable DataGrid cell rendererDisable DataGrid cell renderer
9.DataGrid Drop In Image RendererDataGrid Drop In Image Renderer
10.Inline DataGrid RendererInline DataGrid Renderer