Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with New button
Message
 
To
22/07/2008 09:36:53
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:
01333204
Views:
7
Tim,
Yes I did set the grid as the NavControl. Thanks for all your efforts. Were you able to figure out anything to do to make it work correctly or do I need to switch to the business maint form?

>Linda,
>
>I think I duplicated this behavior. In the form constructor have you set the grid as the NavControl?
>this.NavControl = this.grdMyGrid;
>
>Tim
>
>>>
>>>Here are a couple more questions. Is this form a mm Maintenance form?
>>>I am curious to know if the record is being added in the right datatable and if the values you are changing are being set. Maybe you are just not positioned on the new row.
>>>
>>>Check out the dev guide section "Using Specialized Buttons" under "Creating Windows Forms Applications". There is a section in there about positioning to the new row after it is added. For some reason if your record is added but it is not positioned to that new row, maybe this would do the trick.
>>>Tim
>>
>>Tim,
>>It is a mmBusinessForm. I noticed in the developers' guide that it mentions using that as the basis if you want to develop a custom form. I don't really like having the tab page already on there because you can't rename the first two tabs. When I started this form, I had expected to have more than two tabs and wanted to have more control over the names. It had occurred to me, though, that this might cause some problems. I hadn't gotten around to investigating the differences.
>>
>>I do have the BindingSource set to the table I want and the binding for all the controls, including the New button, is to the primary table for the business object. I checked the State property for the relevant business object and it showed the state as Added. It does act as if it's not positioned on the new row. I'll check out the "Using Specialized Buttons" section. That sounds promising. Thanks again for all your help.
Linda Harmes
HiBit Technologies, Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform