Thanks Boki,
Yes, that's working for me for now.
However, it would be more practical to be able to create custom drawings per slide rather than just at the cell level.
Happy Easter and greetings, Maik
Maik2 hasn't added any friends yet.
No latest visitors to show
20 April 2025 - 12:12 AM
20 April 2025 - 12:08 AM
18 April 2025 - 12:57 PM
Hello Friends,I'm running another NxDBGrid6 in the NxSlidesGridView.
Now I'd like to draw a line in the slides. What's the best way to do this?
I found the solution.
Show the demo at: 'C:\...\NextSuite 6\Demos\Next Grid\Delphi XE6\Cell Background custom drawing'
Thanks.
procedure TFormTagelohnauftraege.NxDBTextColumn63DrawBackground(Sender: TObject; ACol, ARow: Integer; CellRect: TRect; State: TNxCellPaintingState); begin with NextDBGrid61.Canvas do begin Brush.Style := bsClear; Pen.Color := clBlack; MoveTo(CellRect.Left, CellRect.Top + 4); LineTo(NextDBGrid61.ClientWidth-10, CellRect.Top + 4); end; end;
06 April 2025 - 12:46 PM
Hello,
I have two questions again.1. How can I color the NxDBProgressColumn based on the corresponding column value?2. When I try to set the text to tpInside using the TextPosition property, it is still displayed to the left of the progress bar. Is it even possible to display it as shown in the attached screenshots?Thanks and regards, Maik
procedure TForm.NxDBProgressColumn6GetValue(Sender: TObject; ACol, ARow: Integer; var Value: Double); begin NxDBProgressColumn6.ProgressColor := RGB(200, 230, 201); // lightgreen if Value < 100 then NxDBProgressColumn6.ProgressColor := RGB(255, 205, 210); // lightred if Value < 50 then NxDBProgressColumn6.ProgressColor := RGB(187, 222, 251); // lightblue end;
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.