How to implement multiple selected ranges in the TsWorksheetGrid by code? lazarus / 49-FPSpreadsheet ---------------------------------------------------------------------- bills · 2026-01-18 12:26 hi all. I tried the following code, but it didn't work: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var  MySelection: TsCellRangeArray;begin  SetLength(MySelection, 2);   MySelection[0].Col1 := 3;   MySelection[0].Row1 := 7;   MySelection[0].Col2 := 3;   MySelection[0].Row2 := 9;    MySelection[1].Col1 := 5;   MySelection[1].Row1 := 8;   MySelection[1].Col2 := 5;   MySelection[1].Row2 := 10;   wsGrid.RangeSelectMode := rsmMulti;  wsGrid.Worksheet.SetSelection(MySelection);  wsGrid.Repaint; thanks.