Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ObjectDataSource's SelectMethod property and DataViews

Status
Not open for further replies.

Peppi

Programmer
Apr 9, 2001
205
CA
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top