Bonjour tout le monde,

Je suis entrain d'apprendre le développement sous Flex.
J'utilise le data binding pour gérer un datagrid :
- nom de colonne
- contenu du datagrid

Ce que j'ai programmé fonctionne, mais le problème c'est que j'ai des warnings qui apparaissent et je en tyrouve pas comment les résoudre.

la description de mon datagrid
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
		<mx:DataGrid id="tab_Societe" dataProvider="{lt_societeTemp}">
			<mx:columns>
				<mx:DataGridColumn headerText="{lo_societeGUI.lt_nomColonne.getItemAt(0)}" dataField="Col_Id" visible="false" id="col_Id"/>
				<mx:DataGridColumn headerText="{lo_societeGUI.lt_nomColonne.getItemAt(1)}" dataField="Col_Nom"/>
				<mx:DataGridColumn headerText="{lo_societeGUI.lt_nomColonne.getItemAt(2)}" dataField="Col_Libelle"/>
			</mx:columns>
		</mx:DataGrid>
La définition des variables lt_societeTemp et lo_societeGUI

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
[Bindable]
      public var lt_societeTemp:ArrayCollection = new ArrayCollection();
      public var lo_societeGUI:gc_societeGUI=new gc_societeGUI();
La classe gc_societeGUI

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
	public class gc_societeGUI extends gc_Gui
	{
		public function gc_societeGUI()
		{
			super();
			super.lt_nomColonne.addItem("Identfiant");
			this.lt_nomColonne.addItem("Nom");
			this.lt_nomColonne.addItem("Libellé");
			this.lt_nomColonne.addItem("N° tel");
			this.lt_nomColonne.addItem("N° fax");
			this.lt_nomColonne.addItem("Adresse");
			this.lt_nomColonne.addItem("Code postal");
			this.lt_nomColonne.addItem("Ville");
		}
 
		public function Set_ligne (po_societe:gc_Societe):void
		{
			this.lt_information.addItem(po_societe);
		}
 
		public function get_Ligne(pi_indiceLigne:int):Object
		{
			var lt_temp:Array=new Array();
			return {Col_Id:"1",Col_Nom:this.lt_information[pi_indiceLigne].nom, Col_Libelle:this.lt_information[pi_indiceLigne].libelle};
		}
 
		public function To_String() :void
		{
			Alert.show(lt_information[0]);
		}
	}
la classe gc_gui

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
	public class gc_Gui
	{
		import mx.collections.ArrayCollection;		
		//---->Déclarations des attributs de la classe
		public var lt_information:ArrayCollection;
		public var lt_nomColonne:ArrayCollection;
 
		//---->Constructeur
		public function gc_Gui()
		{
			this.lt_information=new ArrayCollection();
			this.lt_nomColonne=new ArrayCollection();
		}
 
 
	}

Les warnings
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
Severity and Description	Path	Resource	Location	Creation Time	Id
Data binding will not be able to detect assignments to "lo_societeGUI".	Test/src	Test.mxml	line 9	1250675901571	1206
Data binding will not be able to detect assignments to "lo_societeGUI".	Test/src	Test.mxml	line 10	1250675901571	1208
Data binding will not be able to detect assignments to "lo_societeGUI".	Test/src	Test.mxml	line 11	1250675901571	1210
Data binding will not be able to detect assignments to "lt_nomColonne".	Test/src	Test.mxml	line 9	1250675901571	1207
Data binding will not be able to detect assignments to "lt_nomColonne".	Test/src	Test.mxml	line 10	1250675901571	1209
Data binding will not be able to detect assignments to "lt_nomColonne".	Test/src	Test.mxml	line 11	1250675901587	1211

si quelqu'un a une idée, je suis preneur


Merci par avance