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 -> ASP

 header row in grids

Print topic Send  topic

Author Message
Chris__T


Posts: 339
Posted: 08/31/2007, 11:57 AM

Is it possible to have a header type row in a grid? So you can designate a field or fields that just occur once and not for every record?
View profile  Send private message
wkempees


Posts: 1679
Posted: 09/01/2007, 7:13 AM

Define your needs.
Several approaches to your problem depending on needs.

Is it data from database you want to display?
Is the row completely different lay-out from the rest of the rows?
Is it like grouping?

Walter


_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
Chris__T


Posts: 339
Posted: 09/04/2007, 9:46 AM

More along the lines of grouping. Just to have one date field represent all the records for that particular date.

I've tried the built-in grouping, but it wasn't what I was looking for.
View profile  Send private message
mhope

Posts: 37
Posted: 09/04/2007, 3:35 PM

In a before show row you could simply do the following if it’s date related (or any other value to compare), place an attribute in there with the following code:

If grid.Thedate.Value = Date() Then ‘Date() could be whatever value you need to compare
Sender.Attributes("MyClass") = "YourClass "
Else
Sender.Attributes("MyClass") = "”
End If
View profile  Send private message
wkempees
Posted: 09/05/2007, 2:12 AM

Have a look at 'Simple Report' and SimpleReport with Total in the HelpFile
It's a basis to start from.
I'm not an ASP... man, cannot help you sourcewise.

Walter

"Chris__T" <Chris__T@forum.codecharge> schreef in bericht
news:646d864b043c84@news.codecharge.com...
> Is it possible to have a header type row in a grid? So you can designate
> a
> field or fields that just occur once and not for every record?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

wkempees
Posted: 09/05/2007, 2:25 AM

Basics:
Make each row in grid multi-row.
First row-row to contain you date info
Second row-row, normal data.
Panel in firs row-row. Panel for row-row1 display:false.
Before Show, test for change of the date, initialy set to 02-02-2970 or so,
to force initial display.
If date change unhide row-row1, else hide.
Or along these lines???
Could be done with <div>'s as well, might be even cleaner.
My approach would be to first make sure daterow-display functions, then
start hiding.
Walter




"wkempees" <kempe819@planet.nl> schreef in bericht
news:fblruj$ueq$1@news.codecharge.com...
> Have a look at 'Simple Report' and SimpleReport with Total in the HelpFile
> It's a basis to start from.
> I'm not an ASP... man, cannot help you sourcewise.
>
> Walter
>
> "Chris__T" <Chris__T@forum.codecharge> schreef in bericht
>news:646d864b043c84@news.codecharge.com...
>> Is it possible to have a header type row in a grid? So you can designate
>> a
>> field or fields that just occur once and not for every record?
>> ---------------------------------------
>> Sent from YesSoftware forum
>> http://forums.codecharge.com/
>>
>
>


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.

Web Database

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.