G
Guest
I've created a combobox in a datagrid, it works OK using the code where
"supplier1" and "supplier2" are the items. However, instead of using hard
coded items, I want to use data obtained from the dataset DsSupplier1. Any
help would be most appreciated.
SqlDataSupplier.Fill(DsSupplier1)
suppcombo.Name = "Suppcombo"
suppcombo.Visible = False
suppcombo.Items.Clear()
suppcombo.Items.Add("supplier1")
suppcombo.Items.Add("Supplier2")
DataGrid1.Controls.Add(suppcombo)
"supplier1" and "supplier2" are the items. However, instead of using hard
coded items, I want to use data obtained from the dataset DsSupplier1. Any
help would be most appreciated.
SqlDataSupplier.Fill(DsSupplier1)
suppcombo.Name = "Suppcombo"
suppcombo.Visible = False
suppcombo.Items.Clear()
suppcombo.Items.Add("supplier1")
suppcombo.Items.Add("Supplier2")
DataGrid1.Controls.Add(suppcombo)