Bonjour,
J'ai rempli un datagridview avec une requête Sql, mon souci est que je voudrais que la première colonne de mon DataGridView soit un combobox. J'ai vu qu'il y a cette option dans les propriétés du datagridview, mais impossible de trouver la méthode pour remplir ce combobox !
Voici ma requête :
Rt2.Open("SELECT ISNULL(SSupplier.Name,''), ISNULL(SSupplierInventoryList.SupplierCode,''), ISNULL(SSupplierInventoryList.UnitQuantity,0) FROM SSupplierInventoryList, SSupplier " _& "WHERE SSupplierInventoryList.Inventory_Id = '" & InventoryId & "' " _
& "AND SSupplierInventoryList.Supplier_Id = SSupplier.Id ", Ct)
WhileNot (Rt2.EOF)
DataGridView1.Rows.Add(Rt2(0).Value, Rt2(1).Value, Rt2(2).Value)
Rt2.MoveNext()
EndWhile
Rt2.Close()
Quelqu'un a t-il une solution ?
Merci à tous pour votre aide.