I want to have Gridlines in my FNCDatagrid.
With following commands i can set the color and lines to clSilver:
CellAppearance.FixedLayout.Stroke.Color:=clSilver;
CellAppearance.NormalLayout.Stroke.Color:=clSilver;
CellAppearance.SelectedLayout.Stroke.Color:=clSilver;
CellAppearance.FocusedLayout.Stroke.Color:=clSilver;
CellAppearance.FixedSelectedLayout.Stroke.Color:=clSilver;
But the Header with the Column Names has no Stroke-Line.
What do i forget to get vertical lines in the Header?
I can't see an issue here, the red vertical lines are drawn for the fixed (column headers) as well as the normal cells
Following code clears the Lines:
// Farben für Header und SelectedRow setzen
CellAppearance.FocusedLayout.Fill.Color := clGridSelected; // Selektierte Zeile in Gelb anzeigen
CellAppearance.SelectedLayout.Fill.Color := clGridSelected;
CellAppearance.FixedLayout.Fill.Color := clGridHeader; // Headerzeile im Grid
I found the Problem.
CellAppearance.FixedLayout.Fill.Color := clGridHeader; (clGridHeader = clSilver)
CellAppearance.FixedLayout.Stroke.Color:=clGridHeader;
I colored the Header with the same Color as the Lines.
The Line-Color should be all clBlack because clGridHeader is clSilver so you can not see the Line with the same color.
So, just to be clear is there still an issue on our side or can we close this topic?
You can close this Topic, its my fault not to see that i used backgroundcolor and linecolor with the same color.
1 Like
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.