CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Editable grid with alternate rows: possible?

Print topic Send  topic

Author Message
jesse
Posted: 12/29/2005, 4:37 AM

Hi there!

I am wondering if it is possible to make a editable grid with alternate rows. I want to give the rows different colors. When using the wizard for an editable grid in Codecharge Studio it doesn't give the option for alternate rows.

Is it possible what I want?

Thanks
Jesse
mamboBROWN


Posts: 1713
Posted: 12/29/2005, 7:28 AM

What version of CCS do you have?? I am almost positive that you can have alternate rows of different colors within an editable grid. Try this link:
http://docs.codecharge.com/studio3/html/UserGuide/Forms/GridForm.html
View profile  Send private message
jesse
Posted: 12/29/2005, 11:41 AM

I am using CCS 3.0. As far as I can see the option for alternative rows is only possible on a normal grid and not on an editable grid.

In the CCS documentation I can't find anything on alt rows on an editable grid.

Has anybody implemented this? Is it even possible? Anyone from Yessoftware?
greywire


Posts: 37
Posted: 12/29/2005, 2:22 PM

There's an easy way to do this. In the row for your grid, add a label component, something like this:

<!-- BEGIN Row -->
<tr style="{rowstyle}"><td></td></tr>
<!-- END Row -->

Then in the before show row function for your grid, add this:

static $even = true;

//** make nice stripes
$Component->rowstyle->SetValue(($even) ? "background-color: gray":"background-color: white");
$even = !$even;


Of course, you will want to change the style as needed, or use a class instead. Or dont use style sheets at all, just put your {rowstyle} into the bgcolor="" for your table...
_________________
--
Aric Caley
Fonality, inc
View profile  Send private message
jesse
Posted: 12/29/2005, 2:54 PM

Hi there,

Thanks for your reply and solution. I think that would work yes. Do you know the code in ASP? I am using ASP but haven't got much experience with it.

Thanks :-)
jesse
Posted: 12/29/2005, 3:02 PM

Never mind, I got it working already.

Thanks for your help.

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.