Răsfoiți Sursa

Libraries: TVisualGrid bug fix

Herman Schoenfeld 7 ani în urmă
părinte
comite
d502f068dd
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  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;