paulmason411
Posts: 127
|
| Posted: 06/15/2008, 8:48 PM |
|
I am trying to print/find the total rows for an editable grid by adding the following code to the before show event.
print $Component->TotalRows;
Nothing is printing, any suggestions?
_________________
http://paulmason.name - Web Development Blog
|
 |
 |
Gena
Posts: 591
|
| Posted: 06/16/2008, 3:12 PM |
|
Try this action:
Retrieve Number Of Records
Use this action to retrieve the total number of records to be displayed within a Grid or Editable Grid form. The action can be used only in the Before Show event of a control within a Grid or Editable Grid form such that the control will hold the retrieved number of records.
_________________
Gena |
 |
 |
paulmason411
Posts: 127
|
| Posted: 06/16/2008, 5:34 PM |
|
Thanks Gena!
I used your advice and found the working code:
print $Container->DataSource->RecordsCount;
_________________
http://paulmason.name - Web Development Blog
|
 |
 |
|