Forum
Products
Purchase
Support
Company
My Adillis
Knowledge Base
Forum
Home
/
Support
/
Knowledge Base
Forum
To post messages on the forum, you need to
login
first.
Search
Forum Home
Product Forums
smartDBforms.NET
Default Mode of...
Default Mode of SmartDBView
5/23/2010 1:30:11 PM
Brett
4 posts
Default Mode of SmartDBView
I'm having a problem on a form. I have a "add new" button that makes a smartdbview visible to adde a new record. However, the view always comes up in edit mode: svFinancial.Visible = True svFinancial.DefaultMode = Adillis.SmartDBForms.SmartDBViewMode.Insert svFinancial.DataBind() I've tried with and without databind with the same results. If I set the default of the control at design time, to Edit, I have the opposite problem. This works fine on a different form, and can't figure out why this one is behaving differently. Any ideas?
5/24/2010 3:17:55 PM
Adillis Support
43 posts
adillis.com
Re: Default Mode of SmartDBView
Hi Brett,
SmartDBView.DefaultMode only determines the initial mode of the form and the mode when an operation is completed or canceled.
If you want to change the current mode you should use the method SmartDBView.ChangeMode(newMode). It will change the mode and will automatically databind the form.
If you have any other questions, we will be more than happy to help you.
Best wishes,
Adillis Support
Adillis - IT solutions
http://adillis.com
Page 1 of 1
Product Forums
smartDBforms.NET
Default Mode of...
Flat View
Tree View
Oldest To Newest
Newest To Oldest
Copyright 2006-2010 Adillis
Terms Of Use
Feedback
Contact Us