Print Page | Close Window

BackColor for odd and even rows

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=3200
Printed Date: 30 April 2025 at 11:40pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BackColor for odd and even rows
Posted By: RBCDATA
Subject: BackColor for odd and even rows
Date Posted: 10 November 2005 at 4:23pm

How can i set the BackColor for odd and even rows???

Im able to set the back color when i fill the report control but it gets mixed up if i sort the rows by clicking on a column header.

I have tried to go through all the rows to "repaint" them but im unable to iterate the rows in the sorted order.

I would also really like to set the back color of the focused cell only and not the rest of the selected row.

Please help

Kind regards

René Bechmann
RBC Data




Replies:
Posted By: sserge
Date Posted: 11 November 2005 at 8:55am
Hi René,

Look into Report contol VB sample, event handler wndReportControl_BeforeDrawRow.
See also VB sample menu -> Report Control -> Automatic Formating Sample.

Quote I would also really like to set the back color of the focused cell only and not the rest of the selected row.

Standard report functionality does not allow this.
To do this you can implement your own focused/selected tracking.
For more ideas see also VB sample menu -> Report Control -> Test -> Task List sample.

--
WBR,
Serge



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net