CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> ASP

 Insert Caption row every 10-row (Grid-Ctrl)

Print topic Send  topic

Author Message
sakura

Posts: 4
Posted: 11/14/2007, 11:19 PM

Dear CodeChargeStudio 3 User.
I have some problems of Grid-Control ASP.

I need Insert Caption row every 10-row in Grid-Control ex)Pattern.

Does it use costom code Only?

ex)
 userID username age
*** ****** **
*** ****** **
*** ****** **
       ~10Row
*** ****** **
 userID username age
*** ****** **
*** ****** **
*** ****** **
       ~10Row
*** ****** **
 userID username age
*** ****** **
*** ****** **
*** ****** **
       ~10Row
*** ****** **

View profile  Send private message
kevind

Posts: 251
Posted: 11/15/2007, 6:20 PM

you could create a 2nd row in the grid and then switch to HTML view and put a label inside that row's <TR> element so it looks like <TR {MyRowLabel}.

set the content type to HTML and in the before-show row event of the grid do this:
( dim a variable first outside of the code)

Dim MyCaptionCount

Before Show Row Event Code :

With EventCaller
if MyCaptionCount>=10 then
MyRowLabel.value="style='display:table-row' "
MyCaptionCount=0
else
MyRowLabel.value="style='display:none' "
MyCaptionCount.value=MyCaptionCount.value+1
end if

End With

End of Before Show Row event code


_________________
thanks
Kevin

======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
View profile  Send private message
sakura

Posts: 4
Posted: 11/15/2007, 9:43 PM

Great thanks kevind!!:-)
OK,yourCode and NiceAction.

Some Writes need repair.

>put a label inside that row's <TR> element so it looks like <TR {MyRowLabel}.
better Writes -> <TR {MyRowLabel}>

>MyCaptionCount.value=MyCaptionCount.value+1
better Writes -> MyCaptionCount=MyCaptionCount+1
View profile  Send private message
kevind

Posts: 251
Posted: 11/16/2007, 4:15 AM

yes, you are correct with your correctionns - i wrote it late at night and was tired :-)
_________________
thanks
Kevin

======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
View profile  Send private message

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.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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