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