Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmDataGrid referencing its data business object
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
MmDataGrid referencing its data business object
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01049155
Message ID:
01049155
Vues:
56
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
Fil
Voir

Click here to load this message in the networking platform