Hi James It's not that obvious. For some reason TDBCustomGrid introduces new Options, instead of exposing the underlying Options in TCustomGrid. Have a look at TDBCustomGrid.SetOptions(). You'll see that removing column lines, removes both the lines in the grid area and the fixed area. The only way around this would be to inherit a new component from TDBCustomGrid and override Paint() to add goFixedVertLine or goFixedHorizontal to the TCustomGrid options before calling its inherited Paint().
Todd. ----- Original Message ----- From: "James Low" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Friday, August 29, 2003 8:32 AM Subject: [DUG]: TDBGid - removing gridlines. > I suspect this is ridiculously obvious but cannot seem to sort it: > > I have a vanilla TDBGrid that I would like to look like a listview (in list > view) - but retain its editing ability. Simple I thought, just remove the > locator and gridlines and voila. Problem is, when I remove the gridlines, > they are removed from the fixed column row (ie the header row) also, which > then looks stupid. The grid has a bunch of owner-draw stuff already ... but > I cannot work out how to remove the gridlines (ie paint them clWindow) for > all rows bar the fixed header. Any thoughts would be appreciated. > > Thanks > > James > > Email disclaimer: This email and any attachments are confidential. If you are not the intended recipient, do not copy, disclose or use the contents in any way. If you receive this message in error, please let us know by return email and then destroy the message. Environment Bay of Plenty is not responsible for any changes made to this message and/or any attachments after sending. > ****************************************************** > This e-mail has been checked for viruses and no viruses were detected. > -------------------------------------------------------------------------- - > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
