private ChecklistRulesNavigatorTDS SubmitSearch()
        {
            // ... Load data
            ChecklistRulesNavigator checklistRulesNavigator = new ChecklistRulesNavigator();
            checklistRulesNavigator.Load(Int32.Parse(hdfCompanyId.Value));

            return (ChecklistRulesNavigatorTDS)checklistRulesNavigator.Data;
        }
        private void PostPageChanges()
        {
            ChecklistRulesNavigator checklistRulesNavigator = new ChecklistRulesNavigator(checklistRulesNavigatorTDS);

            // Update rows
            foreach (GridViewRow row in grdCRNavigator.Rows)
            {
                int ruleId = int.Parse(((Label)row.FindControl("lblRuleID")).Text);
                bool selected = ((CheckBox)row.FindControl("cbxSelected")).Checked;

                checklistRulesNavigator.Update(ruleId, selected);
            }

            checklistRulesNavigator.Data.AcceptChanges();

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