private ProjectCostingSheetsNavigatorTDS SubmitSearch()
        {
            ProjectCostingSheetsNavigatorTDS projectCostingSheetsNavigatorTDS = new ProjectCostingSheetsNavigatorTDS();
            // ... Load data
            ProjectCostingSheetsNavigator projectCostingSheetsNavigator = new ProjectCostingSheetsNavigator(projectCostingSheetsNavigatorTDS);
            projectCostingSheetsNavigator.LoadByProjectId(Int32.Parse(hdfProjectId.Value.ToString()), Int32.Parse(hdfCompanyId.Value.ToString()));

            ProjectCombinedCostingSheetsNavigator projectCombinedCostingSheetsNavigator = new ProjectCombinedCostingSheetsNavigator(projectCostingSheetsNavigatorTDS);
            projectCombinedCostingSheetsNavigator.LoadByClientId(Int32.Parse(hdfClientId.Value.ToString()), Int32.Parse(hdfCompanyId.Value.ToString()));

            return (ProjectCostingSheetsNavigatorTDS)projectCostingSheetsNavigatorTDS;
        }
        private void PostPageChanges()
        {
            ProjectCostingSheetsNavigator projectCostingSheetsNavigator = new ProjectCostingSheetsNavigator(projectCostingSheetsNavigatorTDS);

            // Update grid rows
            foreach (GridViewRow row in grdCostingSheetsNavigator.Rows)
            {
                int costingSheetId = int.Parse(((Label)row.FindControl("lblCostingSheetID")).Text);
                bool selected = ((CheckBox)row.FindControl("cbxSelected")).Checked;

                projectCostingSheetsNavigator.Update(costingSheetId, selected);
            }

            projectCostingSheetsNavigator.Data.AcceptChanges();

            // Store datasets
            Session["projectCostingSheetsNavigatorTDS"] = projectCostingSheetsNavigatorTDS;
        }