protected
void grvSchedule_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)
{
switch (e.DetailTableView.Name)
{
case "ClientSchedDetl":
{
DoClientSchedDetailsGrid(e);
break;
}
case "grvAnimalDetl":
{
e.DetailTableView.DataSource =
L_Animals.
SchedAnimals.GetSheduleAnimals(SchedID);
break;
}
}
}
protected
void grvSchedule_DataBound(object sender, EventArgs e)
{
grvSchedules.MasterTableView.DetailTables[0].DataBind();
//ClientSchedDetl
grvSchedules.MasterTableView.DetailTables[1].DataBind();
//grvAnimalDetl
}
I am exporting the lot to PDF, but am trying to give the user a "Preview" screen, showing all detailgrids etc, prior to actually exporting to PDF, without the need for them clicking the "Grid s Expand button
i am using vers. 2009.1
I have noticed (no paging implemented), that any further pages basically the 2nd of my detail grids does not show on the form either,
Can i show it all in one page? i.e. not need to put paging in?
Thanks
Neal


string strMessage = "Do you want to add items now?";
JS =
" Sys.Application.add_init(CRInit);";
JS +=
" function CRInit(){ Sys.Application.add_load(SRRunOnce);}";
JS +=
" function SRRunOnce(){ showConfirmation(); Sys.Application.remove_load(SRRunOnce);}";
JS +=
" function GetRadWindow1(){";
JS +=
" var oWindow = null;";
JS +=
" if (window.radWindow) oWindow = window.radWindow;";
JS +=
" else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;";
JS +=
" return oWindow;";
JS +=
"}";
JS +=
" function showConfirmation(){";
JS +=
" function CallBackFn(arg){";
JS +=
" var oWindow = GetRadWindow1();";
JS +=
" if (arg == 'Yes'){";
JS +=
" window.location = 'ComponentReworkPackSlipItemDetail.aspx?R=Y&A=A&pid=" + oPackingSlip.PackingSlipReworkId.ToString() + "';";
JS +=
" }";
JS +=
" else {";
JS +=
" oWindow.Close();";
JS +=
" oWindow.BrowserWindow.refreshGridAndLocate(" + oPackingSlip.PackingSlipReworkId.ToString() + ");";
JS +=
"}";
JS +=
"}";
JS +=
" radconfirm('" + strMessage + "', CallBackFn, 530, 100, null, 'Confirm Add Item');";
JS +=
"}";
ScriptManager.RegisterStartupScript(Page, this.Page.GetType(), key, JS, true);
}
