Bonjour,
je cherche a changer mettre DDL dans une colonne en mode Edition , (colonne titre Film)
voila mon DataGrid
le code de ma commade Edit
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
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
j'ai ce message d'erreur
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
4
5
6
7
8
9
10
11
Et pourtant je mets bienCompiler Error Message: CS0246: The type or namespace name 'oDropDownList' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 53: MyDataGrid.EditItemIndex = (int)e.Item.ItemIndex;
Line 54: OleDbCommand Mycommande = new OleDbCommand("select id, titre from film", myConnection);
Line 55: oDropDownList.DataSource = OleDbCommand.ExecuteReader();
Line 56: oDropDownList.DataValueField = "id";
Line 57: oDropDownList.DataTextField = "titre";
j'aimerais savoir ou je me suis trompée
Code : Sélectionner tout - Visualiser dans une fenêtre à part 
2
3
merci

 

 
		
		 
         
 

 
			
			

 
  
  
 
 
			

 [C#] Mode édition DropDownList
 [C#] Mode édition DropDownList
				 Répondre avec citation
  Répondre avec citation 
						

 
   
 
  
			
 
				 
  Envoyé par Ditch
 Envoyé par Ditch
					
				 
						
Partager