andyhill Posted February 6, 2022 Share Posted February 6, 2022 I see where we can add a HeaderTitle to a DBGrid, how do we not have a HeaderTitle (I do not want the unused header space showing) see attachments. Please advise - thanks dbGridInvoices.Options:= [dgIndicator, dgRowLines, dgColLines, dgAutoRefreshRow, dgColumnResize, dgTitles]; dgTitles are ColumnHeadings Quote Link to comment Share on other sites More sharing options...
irigsoft Posted February 6, 2022 Share Posted February 6, 2022 2 hours ago, andyhill said: I see where we can add a HeaderTitle to a DBGrid, how do we not have a HeaderTitle (I do not want the unused header space showing) see attachments. Please advise - thanks dbGridInvoices.Options:= [dgIndicator, dgRowLines, dgColLines, dgAutoRefreshRow, dgColumnResize, dgTitles]; dgTitles are ColumnHeadings Hello, I have a situation where I have to hide the DBGrid header, so in my CSS file I set the body style of the table like this: Hide header: .x-grid-header-ct { height: 0px !important; } This lifts the body with the indicated and overlaps the header. .x-panel-body { top: 0px !important } Quote Link to comment Share on other sites More sharing options...
andyhill Posted February 6, 2022 Author Share Posted February 6, 2022 Thanks for the response however I do not want to hide the Column Names -nor- reposition the master frame. Code that worked correctly before update, now (after browser cache clear) does not. Sherzod, the images I have attached clearly show the "Header" text in blue on an oversized panel that also contains the Column Titles. I want the Column Titles only. Please advise how to resolve ASAP - Thanks. Could it be related to Delphi Alexander's new scaling ? If so how do I resolve ? Quote Link to comment Share on other sites More sharing options...
andyhill Posted February 7, 2022 Author Share Posted February 7, 2022 Updated to 1557, MADE NO DIFFERENCE. 1557 Update Notes:- TUniDBGrid: Filtered grid and header height issue in Chrome Dose this mean it is supposed to be fixed ? Same problem with Edge Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 7, 2022 Share Posted February 7, 2022 On 2/6/2022 at 10:19 AM, andyhill said: Hello, Sorry, your case is not very clear. Quote Link to comment Share on other sites More sharing options...
andyhill Posted February 7, 2022 Author Share Posted February 7, 2022 Delphi 10.4 Project bought across into Delphi 11 runtime scaling issue SOLVED. PageControl/Sheet/ToolBar/Panel/Grid Solution: Set ToolBar.ButtonHeight:= nn; 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.