DataGrid Validate Now : DataGrid « Grid « Flex






DataGrid Validate Now

DataGrid Validate Now
         

<!--
Code from Flex 4 Documentation "Using Adobe Flex 4".

This user guide is licensed for use under the terms of the Creative Commons Attribution 
Non-Commercial 3.0 License. 

This License allows users to copy, distribute, and transmit the user guide for noncommercial 
purposes only so long as 
  (1) proper attribution to Adobe is given as the owner of the user guide; and 
  (2) any reuse or distribution of the user guide contains a notice that use of the user guide is governed by these terms. 
The best way to provide notice is to include the following link. 
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

-->

<!-- dpcontrols/DataGridValidateNow.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx" initialize="initData();">
    <fx:Script>
         
        import mx.collections.ArrayList; 
        [Bindable] 
        private var DGArray:ArrayList = new ArrayList([ 
            {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99}, 
            {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99}]); 
            // Initialize initDG ArrayList variable from the ArrayList. 
        public function initData():void { 
            myGrid.dataProvider = DGArray; 
        } 
      
    </fx:Script>
    <mx:DataGrid id="myGrid">
        <mx:columns>
            <mx:DataGridColumn dataField="Album" />
            <mx:DataGridColumn dataField="Price" />
        </mx:columns>
    </mx:DataGrid>
</s:Application>

   
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Scroll DataGridScroll DataGrid
2.Set selected index for DataGridSet selected index for DataGrid
3.Variable row heightsVariable row heights
4.Multi-line data grid rowMulti-line data grid row
5.variable scope for DataGridvariable scope for DataGrid
6.Creating inline item renderer and editorCreating inline item renderer and editor
7.Using a DataGridUsing a DataGrid
8.Formatting grid lines with CSSFormatting grid lines with CSS
9.Set editing position for DataGridSet editing position for DataGrid
10.Append new value to DataGrid from Form fieldsAppend new value to DataGrid from Form fields
11.Item click event for DataGridItem click event for DataGrid
12.Editable DataGridEditable DataGrid
13.Variable row height DataGridVariable row height DataGrid
14.DataGrid change eventDataGrid change event
15.Use Panel to layout controls and hold DataGridUse Panel to layout controls and hold DataGrid
16.DataGrids take a dataProvider to populate themDataGrids take a dataProvider to populate them
17.Default setting for DataGridDefault setting for DataGrid
18.Call HTTP server and set result to DataGrid
19.Binding XML to DataGridBinding XML to DataGrid
20.DataGrid Configuration through ActionScriptDataGrid Configuration through ActionScript
21.DataGrid Validate Now Selected indexDataGrid Validate Now Selected index
22.DataGrid with static string valuesDataGrid with static string values
23.DataGrid DataDataGrid Data
24.DataGrid EventsDataGrid Events
25.Sort a DataGridSort a DataGrid
26.Inline DataGrid Image ScopeInline DataGrid Image Scope
27.Print DataGrid outPrint DataGrid out
28.Enabling the user to move many items at onceEnabling the user to move many items at once
29.data provider contains fields for an artist, album name, and price.data provider contains fields for an artist, album name, and price.