Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Description column in mmdatagridview
Message
 
To
16/11/2006 14:44:48
Rick Forbes
Brotherhood of Maintenance of Way Employ
Royal Oak, Michigan, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01170434
Message ID:
01170570
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform