Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
AutoSetEnable for controls bound to a DataView
Versions des environnements
Network:
Windows 2003 Server
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?
Thanks,
-Michael
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