Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Description column in mmdatagridview
Message
 
À
16/11/2006 14:44:48
Rick Forbes
Brotherhood of Maintenance of Way Employ
Royal Oak, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01170434
Message ID:
01170570
Vues:
15
Rick,

>I have a mmDataGridView control with BindingSource set to a Transaction Business object. I would like to display a Description column in this grid from another Business object. Could someone tell me the best way to accomplish this? If this has been answered in some previous thread just point me to that. Thanks.

If this is an "editable" grid the best choice is to create a combo box filled with a list of descriptions. If it's just a read-only column, you can change the SQL statement (or stored proc) to return the description from the other table. You can then set your business object's UpdateSelectStatement property so the Insert, Update, and Delete operations only update the columns from the main table. For more information on this property, see the MM .NET Dev Guide topic "UpdateSelectStatement: The Update Select Statement ".

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform