PDA

View Full Version : Need "colored" TDBGrid


N/A
10-04-1999, 10:22 PM
Hi, i need a TDBGrid Component where the lines have alternating background colors (like "oldish-style" endless printer paper ;-) ...RecNo and DBi... work only for dBase and Paradox-Tables :(. Solutions starting at TDBGrid.DrawColumnCell or developing a "new" component with a "new" DrawCell work only when the complete Grid is drawn - scrolling line by line will cause at the end of the grid sort of blockcopy on the screen: colororientation hast to change (but how will i know?).

So my 2 questions: Is there already such a component? Is there any way to get the canvas of a TDBGrid into a TBitmap Component to use ScanLine to detect the color of the gridrow above or below the actual one? (Canvas.Pixels works *only* in the actual cell :(

Thanks Sven

N/A
10-07-1999, 09:25 AM
Have you checked out TopGrid (http://www.topsupport.com) - it has many many features for colors and other options.



Also, RxLib has a database grid that can do colors. *It doesn't have a property that you select alternating backgrounds, but you can easily program it to alternate.



Both of them are good choices.

N/A
10-08-1999, 03:27 AM
Tried rxlib - it's really fine, but it allows the changing of the background color depending only either from the data field value or an absolute row number calculated by Rect - using a boolean flag to decide wether the next line to draw is colored or not, does not work, when the grid-cursor is set randomly in the "middle" of the grid. by scrolling the grid line by line i don't know wether the first line in grid is colored or not - i couldn't see any function to read the background color of cell(x,y), or am i mistaken?

thanks Sven

N/A
10-20-1999, 01:01 PM
I use infopower grids for the dataaware controls and the advanced string grid from TMS Software for *non dataaware grids. Both the grids can be colored alternatively.

cddoc
11-18-2001, 06:56 AM
Try www.tmssoftware.com