General information
Category:
The Mere Mortals .NET Framework
Title:
AutoSetEnable for controls bound to a DataView
Environment versions
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only