Kees Moezelaar
2025-03-14T10:24:11Z
When I restore the sortlayout with "Igr.LayoutSort = s" the sorting is restored, but I only see the sort-arrows, not the numbers if there is a multi column sort.
If I add a column to the sort after that the numbers appear.
What should I do so the numers show in the first place?
Igor/10Tec
2025-03-14T15:28:27Z
The LayoutSort property is implemented in iGrid ActiveX but not in iGrid.NET. This is a section for iGrid.NET, and I will move your question to the corresponding forum section.

As for the problem, can you create a sample demonstrating the issue and email it to us for the further consideration?
Kees Moezelaar
2025-03-25T16:20:27Z
I found where the problem started, and found a fix too.
I first do:
iGridSrch.BeginUpdate
iGridSrch.Clear True
iGridSrch.FillFromRS ss, igFillRSRecreateColsOnly
ss.Close
SortSet = GetSetting("testsort", "test", "sort", "")

colSet = GetSetting("testsort", "test", "col", "")
If SortSet > "" Then iGridSrch.LayoutSort = SortSet
If colSet > "" Then iGridSrch.LayoutCol = colSet
iGridSrch.EndUpdate

Than later I do:

Set ss = zdb.OpenRecordset("Tabel1")
iGridSrch.BeginUpdate
iGridSrch.Clear
iGridSrch.FillFromRS ss, igFillRSAddToExistingRows
iGridSrch.EndUpdate

After this the "sort numbers"where not visible, but the arrows where,

Now I do:
Set ss = zdb.OpenRecordset("Tabel1")
colSet = iGridSrch.LayoutCol
iGridSrch.BeginUpdate
SortSet = iGridSrch.LayoutSort 'SAVE THE SETTING TEMPORARILY
iGridSrch.Clear
iGridSrch.FillFromRS ss, igFillRSAddToExistingRows
iGridSrch.LayoutSort = SortSet 'RESTORE THE SETTING
iGridSrch.EndUpdate

Than everything works ok