Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
MmDataGrid referencing its data business object
Versions des environnements
Network:
Windows 2003 Server
When following the MM tutorials on using business objects to get data to present in a mmDataGrid, you register an instance of the business object with the web page and then the business object becomes available in the mmDataGrid's BindingSource property builder. Is there a way that I can write code in a method that I add to the Datagrid to access the instance of the business object through the BindingSource property on the datagrid?
Here's what I want to do:
- Subclass the mmDataGrid
- Add a new method to my subclass to view a certain property on my business object
- reference the business object through the BindingSource property on the datagrid to look at that property
My fear is that, through the property builder, the BindingSource is set to the class name of the business class and not to the instance of that object so the reference may not work. The class name may be Customers, and the instance on the page may be named oCustomers.
Does anybody know the best way to generically reference the business object used by a mmDataGrid?
Matthew J. Price
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement