Tim Posted June 1, 2018 Share Posted June 1, 2018 Hello, I'm trying to figure out how to change the color of the horizontal lines separating the rows in a TUniDBGrid when the Options.dgRowLines property is enabled. For example, in the GridEditors demo project, the color of the horizontal lines always seems to be RGB(237,237,237), regardless of what i set the Color property of the grid or the form to: How can I change this to white RGB(255,255,255)? UniGui v1.0.0.1425 with Delphi 10.2 Update 3 Many thanks Tim Quote Link to comment Share on other sites More sharing options...
mhmda Posted June 2, 2018 Share Posted June 2, 2018 Why would someone change that, it depends on the theme settings, you may hide it or you may change the column's background color. Quote Link to comment Share on other sites More sharing options...
Tim Posted June 4, 2018 Author Share Posted June 4, 2018 Thanks for the reply. How do i change a column's background color? The individual columns do have a Color property, but setting that doesn't seem to change the color of the horizontal lines. In the project i am working on there is a grid which looks like this: dgRowLines is disabled. The checkbox in the leftmost column and the arrow in the rightmost column are done by supplying a bitmap in the OnFieldImage event. The gray background in the second-last column is accomplished by setting Attribs.Color in the OnDrawColumnCell. But we want some visual separation between the entries in the second-last column, like this: I thought it might be possible to achieve this by enabling dgRowLines. But i can't figure out how to make the horizontal lines white instead of gray. Maybe there is some better way of doing this? 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.