1. Computing & Technology

Discuss in my forum

Zarko Gajic

Alternate DBGrid Row Color

By , About.com GuideSeptember 21, 2010

Follow me on:

in Delphi's DBGrid :: You've seen this surely on web pages. Alternating table row colors means displaying the first record in one color and the second record in another color and continue to alternate the color of each row displayed.

When working with datasets with many rows, alternating the background color of each row can increase readability.

Read the full article to learn how to Alternate DBGrid Row Color.

Related:

Comments
May 13, 2008 at 10:23 pm
(1) Joe :

When you have long lines, the problem is still there.

Grouping the grid or report in 3 lines at a time (instead of alternating every line) makes it much easier to read, especially when dealing with long lines.

February 8, 2009 at 11:19 am
(2) w :

One problem with this solution: RecNo may not be correct when dataset is filtered.

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2012 About.com. All rights reserved.

A part of The New York Times Company.