Hello,
I've seen this question asked before and I saw no appropriate resolution.
I have a RadGrid that is just a single level, no detail tables, no nesting. The ObjectDataSource is set on the grid in code behind in response to a search button.
The DataBind() method calls the ObjectDataSource.Select method 3 times before the third line of code above runs.
If I put a break point at the End Function of the ObjectDataSource code, I see the following in the Immediate Window:
I also have other RadGrids on the page in various tab/multipage areas and they all have detailtables or nesting of some kind. They all call their ObjectDataSource.Select methods 3 times as well, so I thought I'd just do the testing with the single level Grid.
Your assistance with this matter will make the sale of the product and save me from the wrath of my DBA.
Regards,
Joan.
I've seen this question asked before and I saw no appropriate resolution.
I have a RadGrid that is just a single level, no detail tables, no nesting. The ObjectDataSource is set on the grid in code behind in response to a search button.
PayrollByCandidateRadGrid.DataSource = PayrollByCandidateObjectDataSource
PayrollByCandidateRadGrid.DataBind()
PayrollByCandidateRadGrid.Visible = True
The DataBind() method calls the ObjectDataSource.Select method 3 times before the third line of code above runs.
If I put a break point at the End Function of the ObjectDataSource code, I see the following in the Immediate Window:
F11 after first call
Step into: Stepping over non-user code 'System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod'
Step into: Stepping over non-user code 'System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect'
Step into: Stepping over non-user code 'System.Web.UI.DataSourceView.Select'
Step into: Stepping over non-user code 'Telerik.Web.UI.RadGrid.DataBind'
F11 after second call
Step into: Stepping over non-user code 'System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod'
Step into: Stepping over non-user code 'System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect'
Step into: Stepping over non-user code 'System.Web.UI.DataSourceView.Select'
F11 after third call
Step into: Stepping over non-user code 'System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod'
Step into: Stepping over non-user code 'System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect'
Step into: Stepping over non-user code 'Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource'
Step into: Stepping over non-user code 'Telerik.Web.UI.GridTableView.ResolvedDataSource.get'
Step into: Stepping over non-user code 'Telerik.Web.UI.GridTableView.CreateChildControls'
Step into: Stepping over non-user code 'System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding'
Step into: Stepping over non-user code 'System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback'
Step into: Stepping over non-user code 'Telerik.Web.UI.GridTableView.PerformSelect'
Step into: Stepping over non-user code 'Telerik.Web.UI.GridTableView.DataBind'
I also have other RadGrids on the page in various tab/multipage areas and they all have detailtables or nesting of some kind. They all call their ObjectDataSource.Select methods 3 times as well, so I thought I'd just do the testing with the single level Grid.
Your assistance with this matter will make the sale of the product and save me from the wrath of my DBA.
Regards,
Joan.