Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AutoSetEnable for controls bound to a DataView
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00959607
Message ID:
00960272
Vues:
8
Michael,

>I have an mmMaintenanceForm with controls bound to a DataView in a BusinessObject. The controls are not disabling when there are no rows shown in the DataView. The underlying DataSet/Table does have rows, but the filter on the DataView excludes any rows from showing. I tracked the reason for this down to mmBindingStrategy.BindValueData(ImmBindingList mmControl, DataView dv,mmBusinessObject bizObj). The call in this method to SetEnabled passes the BusinessObject and the table name from the DataView, which in turn gets the row count of the underlying table, not the number of rows in the DataView. Is there any reason to do this for a control that is bound to a DataView? Or, could the call to SetEnabled simply pass the control object and the DataView.Count?

I'll check into this and get back to you.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform