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?
|
 |
 |
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
|
 |
 |
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.
|
 |
 |
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
|
 |
 |
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/
>>
>
>
|
|
|
 |
|