Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OK to use a bound mm* web control in an mmDataGrid column?
Message
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
OK to use a bound mm* web control in an mmDataGrid column?
Miscellaneous
Thread ID:
00854735
Message ID:
00854735
Views:
73
I have an mmDataGrid with a template column. I edited the template column and dropped in an mmTextBox control. I ran the web app at that point and the page came up just fine.

I went back and set the binding properties on the textbox so that it is bound to a column of a business object's dataset and am now getting the error page below. My question, before I post specific property values and code, is does the framework currently support bound mm web controls inside an mmDataGrid? I looked in the MM 1.1 Dev Guide for an example of this, but did not find one.
A control cannot modify its parents' control collections. 
Description: An unhandled exception occurred during the execution of the current web request. Please review 
the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Web.HttpException: A control cannot modify its parents' control collections.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding 
the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 

[HttpException (0x80004005): A control cannot modify its parents' control collections.]
   System.Web.UI.ControlCollection.RemoveAt(Int32 index)
   System.Web.UI.ControlCollection.Clear() +26
   System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e)
   System.Web.UI.WebControls.BaseDataList.DataBind()
   OakLeaf.MM.Main.Web.UI.WebControls.mmDataGrid.BindControlToData(DataSet ds, String tableName)
   OakLeaf.MM.Main.Web.UI.mmWebBindingStrategyDataGrid.BindData(ImmWebBindingDataGrid mmGrid,
mmBusinessObject bizObj, Boolean bindBack, mmBusinessStateChangeEventArgs e)
   OakLeaf.MM.Main.Web.UI.WebControls.mmDataGrid.OnBindData(mmBusinessObject bindingSource,
mmBusinessStateChangeEventArgs e, Boolean bindBack)
   OakLeaf.MM.Main.Web.UI.mmBusinessWebPage.BindControl(ImmWebBinding control, String bindingSource,
String bindingMember)
   OakLeaf.MM.Main.Web.UI.mmBusinessWebPage.OnBubbleEvent(Object source, EventArgs e)
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +26
   OakLeaf.MM.Main.Web.UI.WebControls.mmDataGrid.OnBubbleEvent(Object source, EventArgs e)
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +26
   OakLeaf.MM.Main.Web.UI.WebControls.mmTextBox.OnLoad(EventArgs e)
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Control.LoadRecursive() +98
   System.Web.UI.Page.ProcessRequestMain() +731

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 
Next
Reply
Map
View

Click here to load this message in the networking platform