grum
Posts: 42
|
Posted: 06/15/2005, 10:10 AM |
|
I have an application (CCS 2.3.2, PHP, MYSql) that collects information and submits the results to the database. On the Editable Grid - Data - properties I have the Records Per Page set to 20 and the Empty Rows set to 5. In the form navigation I have the page counts and no of pages displayed.
What I want to do and can not find a way is to only have 5 empty rows if the page displayed is the last one.
So if a search returns 43 records it will display 3 pages :-
Page 1 20 rows and no empty rows
Page 2 20 rows and no empty rows
Page 3 3 rows with 5 empty rows.
What is the best way to code this is codecharge
|
|
|
Nicole
Posts: 586
|
Posted: 06/16/2005, 1:14 AM |
|
Hello,
You can modify EmptyRows property of editable grid in its Before Show event. To find if page is last compare <form_name>Page URL parameter to PageCount property of editable grid. Here is sample code for a form “EGrid1”
if (CCGetParam("EGrid1Page", 0) == $EGrid1->ds->PageCount()){
$EGrdi1->EmptyRows = 3;
}
else {
$EGrdi1->EmptyRows = 0;
}
_________________
Regards,
Nicole |
|
|
grum
Posts: 42
|
Posted: 06/17/2005, 10:34 AM |
|
Thanks for that - I will give it a go.
regards
Grum
|
|
|
|