Posted 23 January 2026, 10:35 am EST - Updated 23 January 2026, 10:40 am EST
Hi,
I have a Flexgrid with 2 columns. The first column is a combobox that shows the shed list where the material of the supplier is stored. The second column shows the supplier name.
Question:
Is it possible for each row to show in the combobox only the sheds where the material of the supplier that is in the second cell?
The code that i use actually to show the hole sheds for the combobox is as follow:
Public Sub CbShedList()
Try
'Dim CBStock As New System.Windows.Forms.ComboBox
Dim Odbcda As New Odbc.OdbcDataAdapter("SELECT Shed_ID, Shedname FROM tShed Order by Shedname ", connectionString)
odbcDataSet1 = New DataSet
Odbcda.Fill(odbcDataSet1, “SonderfreigabeList”)
Dim dt1 As DataTable = odbcDataSet1.Tables(“SonderfreigabeList”)
Dim datamapSF As New ListDictionary
'Create DataMap for Column 1
For i As Integer = 0 To dt1.Rows.Count - 1
datamapSF.Add(dt1.Rows(i)(0), dt1.Rows(i)(1))
Next
Dim style1 As CellStyle = DGGA.Styles.Add(“comboSF”)
style1.DataMap = datamapSF
'Set style of Column 8
DGGA.Cols(1).Style = style1
Catch ex As Exception MsgBox("Error 'CbShedList' :" & vbCrLf & ex.ToString, MsgBoxStyle.Critical) End Try
End Sub
Best regards
Said


