Delphi Programming

  1. Home
  2. Computing & Technology
  3. Delphi Programming
photo of Zarko Gajic

Zarko's Delphi Programming Blog

By Zarko Gajic, About.com Guide to Delphi Programming since 1998

Alternate DBGrid Row Color

Tuesday May 13, 2008
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 5:50 pm
(1) Alister Christie says:

I did a similar tutorial as a video some time back, for those who are interested it’s available here:

May 13, 2008 at 10:23 pm
(2) Joe says:

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.

May 18, 2008 at 9:25 am
(3) yanutrie wahyu says:

Good….
q mw tanya’,mank untuk pembuatan pemrograman database tu bisa diconnect ke MS. Excel???
gmn caranya???
Thanks…

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

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>

Discuss

Community Forum

Explore Delphi Programming

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Delphi Programming

  1. Home
  2. Computing & Technology
  3. Delphi Programming

©2009 About.com, a part of The New York Times Company.

All rights reserved.