Attached Files
Edited by Maik2, 23 March 2025 - 12:16 PM.
Posted 23 March 2025 - 11:17 AM
Edited by Maik2, 23 March 2025 - 12:16 PM.
Posted 23 March 2025 - 04:03 PM
Hello,
1) You can use OnGetCellColor event that now exists under View (e.g. NxRepoertView) class. It's work in the same way.
2) I think that OnSortQuery can help you. It's the same purpose.
3) I will try to fix it. You can at the moment turn-off focus rectangle (HideFocus set to True). But it's a bug and I will work on it.
Posted 23 March 2025 - 10:33 PM
procedure TFormBauvorhaben.NextDBGrid1SortColumn(Sender: TObject; ACol: Integer; Ascending: Boolean); var a:String; begin if Ascending = true then a:='ASC' ELSE a:='DESC'; if ACol < 4 then begin MySQL_DataModule.Bauvorhaben_Query.IndexFieldNames := ''; end; if ACol = 4 then begin MySQL_DataModule.Bauvorhaben_Query.IndexFieldNames := 'BAUVORHABEN ' + a; end; if ACol = 5 then begin MySQL_DataModule.Bauvorhaben_Query.IndexFieldNames := 'PLZ ' + a; end; if ACol = 6 then begin MySQL_DataModule.Bauvorhaben_Query.IndexFieldNames := 'ORT ' + a; end; end;
Posted 01 April 2025 - 12:59 AM
Hi Maik,
Unfortunately I was not able to understand the question about reseting sorting. For dynamical sorting, no reseting is required.
Posted 04 April 2025 - 08:14 PM
Hi Maik,
Unfortunately I was not able to understand the question about reseting sorting. For dynamical sorting, no reseting is required.
0 members, 0 guests, 0 anonymous users