Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I sort the columns on the different grids of a panel dynamically at run-time?

0
Posted

How can I sort the columns on the different grids of a panel dynamically at run-time?

0

Solution: A quick solution is by using the WINAPI/SortGrid Source Code object: 1) After having loaded the grid, locate an Edit Point where you can insert your code (i.e. ‘End load page for grid’ Post Point) 2) Make an API Call to the Source Code/refresh the Grid: ****************************************** // Sort grid in ascending order by Field1, Field2 &; Field3 Set GridSort = API Call Source code: WINAPI/SortGrid Refresh GridP ****************************************** Notes:. a)The ‘Control’ field stores the ‘Control Name’ property of the Grid to sort (Grid1P in this example) b) The ‘FirstSortColum’ input field for the Source Code corresponds to the Colum Number of the first Colum to sort on the Grid c) One limitation of this API is that it can sort a maximum of three columns d) If a parameter is not passed the functions fails compilation.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123