Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AutoSetEnable for controls bound to a DataView
Message
From
09/11/2004 11:43:36
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
AutoSetEnable for controls bound to a DataView
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00959607
Message ID:
00959607
Views:
39
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
Map
View

Click here to load this message in the networking platform