Solved

VB6 DataGrid RowColor

Posted on 2003-11-18
7
959 Views
Last Modified: 2012-08-13
Is there a way to alternate row colors in a VB6 datagrid.

Thanks!!!
0
Comment
Question by:tsuther
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 9

Expert Comment

by:TooKoolKris
ID: 9773469
I assume that you have done a good check on the properties of the datagrid control?
0
 

Author Comment

by:tsuther
ID: 9773496
yes
0
 
LVL 28

Expert Comment

by:vinnyd79
ID: 9774566
I don't think you can with the DataGrid.Have you tried the MSFLEXGRID?
0
 
LVL 4

Accepted Solution

by:
TomLaw1999 earned 250 total points
ID: 9780015
No. It cannot be done!

You can use the standard flexgrid control that ships with VB but this does not have the ability to enter data directly into cells, nor does it happily handle data-binding with ADO recordsets.

A better idea might be to buy a control which does it all such as the TrueDBGrid or VSFlexgrid from http://www.componentone.com 
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 10548758
Moderator, my recommended disposition is:

    Accept TomLaw1999's comment(s) as an answer.

Dan Rollins -- EE database cleanup volunteer
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month5 days, 11 hours left to enroll

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question