I have a Visual Basic project that uses a form to save information to a XML database. The form controls are bound to a DataTableBindingSource and all is fine except the "AddNewItem" button on the BindingNavigator seems to be saving the form. This is not the behavior I expected since there is also a SaveItem button that works great for saving the data to the DataTable. And since I wish to automatically clear the form for a new record after saving, I wrote a routine that clears all the TextBoxes, CheckBoxes, DropDowns, etc… when the SaveItem is clicked. The SaveItem also writes the DataSet to the XML database so no data is lost, but then when I click the AddItem button, it saves the Cleared form over the existing record in the DataTable, so when I click the SaveItem the altered DateTable gets written to the XML Database. Is there any way to grab the control of the AddItem button and alter its behavior so that it doesn’t save the form, or am I not seeing a bigger problem if I did that? I Know I could write my own AddNewItem routine, but the button would be in the wrong place…
BindingNavigator: AddItem button saves the form, but does not clear the form for the new Record
338 Views Asked by Wishful Thinking At
0
There are 0 best solutions below
Related Questions in VISUAL-STUDIO-2017
- file download method in visual studio 2017
- Icons for Visual Studio 2017 Solution Explorer file types
- How can I remove a lib file from "Commandline" in VS2017?
- How can I get cascading reference dlls in one project to build into my main website project?
- Qt Addin: Attempt to add newer Qt version "There's no Qt version assigned to project"
- Alternative for nextafter when backporting to visual studio 2013
- Switch. case var b when b.Contains("SomeString"): Won't compile
- simple openmp c++ problem when using for loop
- How to forbidden trotoiseMerge in Vs2017 use the built-in merge tool
- How to change Visual Studio 2017 default Window layout in C++ sytle?
- Run SSIS package through Server its working fine but that package I am running on my local system its not working
- Unable to launch the IIS Express Web server in vs 2017
- Error in displaying the Extension in SSMS created in Visual Studio (VSIX project) when right clicking any tables
- Visual Studio 2017 (or higher) configure IDE to use MetadataAsSource folder under project build folder and not in AppData\Local\Temp
- I can't understand C2665 error (VS 2017 / 15.9.58)
Related Questions in SAVE
- Flutter: How to add items and save it in local storage?
- Can be their an extension to save pages in as offline in the browser itself?
- Excel VBA macro works flawlessly on my computer, but has different errors on different machines?
- Cannot save a Custom Variational Autoencoder Model built in Keras with tensor flow
- String Type Value Member and Display Member in VB.NET Combobox with manually filled data
- VBA Word changing command button properties prevents closing without save prompt
- How to save plots one at a time from momentuHMM fit object?
- what is the expected behavior if you try to save an openpyxl workbook on a file that is already open?
- Nextjs: How to save simple data even in a way that are not lost when navigation between routes?
- Excel VBA unable to save file on a network drive
- Android Studio Error : Class declares multiple JSON fields named 'mLifecycleRegistry';
- How to save a file in Files iOS system app in iOS 17 Swift
- Saving a base64 code into a folder gives me a failed image and cannot open it with PHP
- In Oracle Cloud Infrastructure, how to upload a csv file generated in a notebook directly into a bucket?
- Tensorflow - Save & Load custom model in Keras v3 format
Related Questions in BEHAVIOR
- Echo behaviour of Microsoft Windows Telnet Client
- QML how to make Behavior working on multiple properties
- Finding the repeatability of a behaviour
- how to combine Behavior with sequential animation in qml
- How does the file redirections work in powershell?
- Net Maui Navigation Back button
- Maui Custom Entry Behavior is blocking blocking Set call on ViewModel
- .NET MAUI Numeric Entry with a decimal enforcing Behavior containing a property that dynamically determines the number of decimal points not working
- Trigger a user control action from view model in Avalonia
- How to display ContextMenu on certain TreeViewItem and highlight the selected TreeViewItem in WPF following MVVM
- WinUI 3 ListView item double tapped behavior not working inside datatemplate
- Unexpected behavior in eval in php < 7.4
- What am I doing wrong in bdd / gherkin?
- Behavior for enabling/disabling a WPF ComboBox depending on number of items
- Nested Dictionary, values of one sub-dictionary gets duplicated across all even if specified
Related Questions in BINDINGNAVIGATOR
- Binding Navigator Visual Studio 2022 .NET 7
- How to save edits to a data bound table or query (ultra basic)
- C# Visual Studio Microsoft 2022 BindingNavigator not showing
- Need clarification about how to apply a custom update to data adapter source
- System.Resources.MissingManifestResourceException on rolling sdk project from .netcore3.1 to framework 4.7.2
- ToolStripButtons of a custom BindingNavigator appear locked in the Form Designer
- Control record navigation on MDI child form from MDI parent form
- BindingNavigator: AddItem button saves the form, but does not clear the form for the new Record
- BindingNavigator events not raised
- How to override the bindingNavigatorDeleteItem.Click event
- C#, BindingNavigator, SplitButton, Ugly dot remaining
- C#, BindingNavigator, Ugly line at the right end
- Save button is missing in binding navigator
- Extending BindingNavigator
- How to set up BindingNavigator? - BindingNavigator is not working
Related Questions in NEW-ITEM
- Powershell Script: Search folder, Get Filename, Search Excel, Export String to new File, and more
- Unable to create Registry value through Powershell
- PowerShell - string expansion inside a dynamically created function body?
- How to apply condition to a string in the multiple string with powershell
- Scripting the creation of a file on multiple drives using foreach
- Powershell. Is it possible to bind New-Item -Value parameter ByPropertyName?
- Create folder on remote computer using PowerShell
- Dynamically create functions from hashtable with parameters in PowerShell
- Powershell New-Item call prepending path information when creating a symbolic link
- unexpected behavior when creating a path with %userProfile% environment variable in pwershell
- How to use New-Item with $Version to create a text file
- PowerShell: Creating a set amount of files based on a parameter, with a running number to differentiate the files
- PowerShell New-Item will create the directory where the script is and not in the path specified
- I am trying to create a shortcut in Powershell from one server to another
- Using GUI Textbox.Text for creating a Folder and adding subfolder
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?