Hi,
I'm trying to work out the design of my program and I have a question about the ObjectDataSource. Is it possible to change the SelectMethod property after it has already been set at design time? I would like to (potentially) change it in the Selecting event depending on whether or not a checkbox is selected. The parameters for both of the business object methods are the same. They differ in that one will return all records while the other will return those records that do not have a status of 'Declined'.
As well, I'm not terribly familiar with DataViews, so I'm wondering if it would be beneficial to use them in the following situation...I have three GridViews on the same page. They all retrieve the same information (e.g. Date Leaving, Date Returning and Status fields), but display different categories of information (i.e. one displays vacation day requests, another is for personal day requests etc.) Would it be a good idea to data bind the grids to DataViews? Having never used them before, I'm not sure how to go about implementing this.
Any help is appreciated.
Thx.
I'm trying to work out the design of my program and I have a question about the ObjectDataSource. Is it possible to change the SelectMethod property after it has already been set at design time? I would like to (potentially) change it in the Selecting event depending on whether or not a checkbox is selected. The parameters for both of the business object methods are the same. They differ in that one will return all records while the other will return those records that do not have a status of 'Declined'.
As well, I'm not terribly familiar with DataViews, so I'm wondering if it would be beneficial to use them in the following situation...I have three GridViews on the same page. They all retrieve the same information (e.g. Date Leaving, Date Returning and Status fields), but display different categories of information (i.e. one displays vacation day requests, another is for personal day requests etc.) Would it be a good idea to data bind the grids to DataViews? Having never used them before, I'm not sure how to go about implementing this.
Any help is appreciated.
Thx.