Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with New button
Message
From
21/07/2008 16:56:48
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01332870
Message ID:
01332962
Views:
7
>Tim,
>You're quick. I went back to update my response and you beat me to it. I have a little more information. It is adding the new row but it is not refreshing the fields on the screen. Isn't that part of the default behavior? I added a refresh of the tab page. Do I need to do an explicit refresh of each control?

You can add this:
this.oMyBizObj.CallStateChange(mmBusinessState.Bind);
Tim

>
>I haven't changed anything on the load. The code that is being called from the button click method simply goes through each control and enables or disables it based on whether the form is in edit mode or not.
>
>Thanks.
>
>>>Tim,
>>>I want to use the default behavior if possible. I modified my click method as shown below but it just ignores the base.OnClick line. I set a break on the base.OnClick line but it didn't follow that code anywhere. Did I type something wrong? Thanks.
>>>
>>>
>>>         private void btnNew_Click(object sender, EventArgs e)
>>>        {
>>>            base.OnClick(e);
>>>            this.ChangeEditStatus(((mmButton)sender).Parent, "Edit");
>>>        }
>>>
>>>
>>
>>I just tried this and it worked for me. Is your button a mmButtonNew from the mm framework? If you add the debug references for the framework you can step into the mm code when that line executes. It is easy to add the references, just follow the simple steps in the Advanced Topics section in the dev guide.
>>
>>Also you may uncover if the other code you added is causing the issue. What did you put in the load event when this broke? If you comment it back out does it work again?
>>Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform