DataDoIt
|
Posted: 02/11/2004, 2:14 PM |
|
CCS2; PHP4; MySQL4
I've implemented a navigable record grid, using the example given of
NavRecordGrid. Works great!!
However, I'm coming into the grid from a seperate search grid and page, and
results grid and page. When I come into the grid, it only shows Record 1 of
1. I have to hit "cancel" to get the navigation grid to show all the
records. For custom code, per the example, I have in the grid's Before
Show:
//If adding a new record
if (CCGetFromGet("emp_id", "") == "-1") {
//Show one empty row
$employees->EmptyRows = 1;
//Hide the navigator
$employees->Navigator->Visible = False;
//If modyfing an existing record
} else {
//Show the navigator
$employees->Navigator->Visible = True;
//Hide empty rows (usually used for adding multiple new records)
$employees->EmptyRows = 0;
}
I'm coming into this page and grid from another page and record grid, with
emp_id as the clickable link to get me there. I want to sit on the record
that I clicked, but I want the navigation row to show all records. How can
I do that?
Thanks!
-Mike R.
|
|
|
|