neo4a Posted May 10, 2017 Share Posted May 10, 2017 Hi, I would like to change TUniDBGrid's appearance in runtime (e.g. show/hide filter panel - see code snipped). var i : Integer; aDoActivateFilter : Boolean; begin aDoActivateFilter := not (dgFilterClearButton in FFrameGrid.Options); FFrameGrid.BeginUpdate; if aDoActivateFilter then FFrameGrid.Options := FFrameGrid.Options + [dgFilterClearButton] else FFrameGrid.Options := FFrameGrid.Options - [dgFilterClearButton]; for I := 0 to FFrameGrid.Columns.Count - 1 do if Assigned(FFrameGrid.Columns[i].Filtering.Editor) then FFrameGrid.Columns[i].Filtering.Enabled := aDoActivateFilter; FFrameGrid.EndUpdate; How do I accomplish a complete refresh of TUniDBGrid? TIA. 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 10, 2017 Share Posted May 10, 2017 Hi, Which edition and build are you using ?! Best regards, Quote Link to comment Share on other sites More sharing options...
neo4a Posted May 10, 2017 Author Share Posted May 10, 2017 Build 1386 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.