mikem
  • mikem
  • Member Topic Starter
2022-04-07T19:26:11Z
Hi, I use the following code to populate a combo. I have checked the code and they are being added to the combo

The Key and Value pairs are stored in a dictionary of (Integer, String)

When I populate the grid, the combos do not show.

If GridCombo.Items.Count > 0 Then GridCombo.Items.Clear()
GridCombo.Items.Add(0, "Not Available") 'Show when no scripts are available
For Each pair As KeyValuePair(Of Integer, String) In DictScripts
' ***** Add scripts list to gridcombo ******
GridCombo.Items.Add(pair.Key, pair.Value)
Next
iGDrives.Cols("Script").CellStyle.DropDownControl = GridCombo
iGDrives.Cols("Script").CellStyle.TypeFlags = iGCellTypeFlags.NoTextEdit '*** Have tried with and without this line
Igor/10Tec
2022-04-08T13:53:47Z
Do you populate the grid after you have assigned the drop-down list to the column's cell style?

If so and you do not see the combo buttons in the cells, send us a sample project demonstrating this issue.
mikem
  • mikem
  • Member Topic Starter
2022-04-08T14:47:07Z
Hi Igor,

Thanks for your reply;

*Do you populate the grid after you have assigned the drop-down list to the column's cell style?*

Yes, I do. I initialise the Grid with columns, and set the grid combo up at that point.
Before the grid initialisation, the dictionary is loaded from an Access datatable.

The grid initialisation is the final part of the form load event.
I tried changing the dictionary to (string, string), but the problem persists.

I have been using IG 10.0, and I see there is an update to 10.1, I will try that first.
Something I should perhaps have mentioned, is that I am using VB.NET 2022 with .NET 4.8

If that still fails, I'll write a short program.

Mike
mikem
  • mikem
  • Member Topic Starter
2022-04-08T15:21:17Z
Hi Igor

Firstly, I didn't realise you were based in Kyiv, I hope you, your family and friends are all safe. I have a few other contacts in Kiev and other parts of Ukraine, some are safe and well, others are trying to get here to England.

I tested in 10.1 and everything is working fine.

Best regards,

Mike