Master - Detail, No records detail

Grettings,

I’ve tried to implement Master - Detail, 1 master and 14 detail tables.

In the detail,12 tables can shows any detail records, but in 2 detail tables i need to shows no records. The end user must be click in add record button to shows.

I use the GridAddRowCount property like this:

Detail Table
Server Events

// Page Load event
function Page_Load() {
//echo “Page Load”;
$this->GridAddRowCount = 0;
}

but shows me 1 record.

In advanced Settings, parameter Grid-Add row count i have set 1.

How can i do this dinamyc functionality.

Grettings,

Omar

Since you use GridAddRowCount, I assume you meant Master/Detail-Add. The advanced setting “Grid-Add row count” is global (for all tables), if you want to set some detail table only, you may try: (in server event for the master table’s Add page)

$GLOBALS[“MyDetailTableName_grid”]->GridAddRowCount = 0; // Replace “MyDetailTableName” with your real one