Parcourir la source

Libraries: TVisualGrid bug fix

Herman Schoenfeld il y a 7 ans
Parent
commit
d502f068dd
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/libraries/sphere10/UVisualGrid.pas

+ 1 - 0
src/libraries/sphere10/UVisualGrid.pas

@@ -397,6 +397,7 @@ uses
     property Options: TVisualGridOptions read FOptions write SetOptions;
     property Canvas: TCanvas read GetCanvas;
     property SelectionType: TSelectionType read FSelectionType write SetSelectionType;
+    // IMPORTANT: set DeselectionType before SelectionType to avoid auto-selected first row
     property DeselectionType: TDeselectionType read FDeselectionType write SetDeselectionType;
     property Selection: TVisualGridSelection read GetSelection;
     property SelectedRows : TArray<Variant> read GetSelectedRows;