OnPropertyChange databinding and sharing DataSet between multiple Forms and UserControls
Categories: Data Controls, UserControls
|
Tags: Architects, Developers, Data Binding, 2. Intermediate, 3. Advanced, Data Binding, Pre v6.3, v6.3, v6.4 and Later
Revision:
1
Posted:
02/Jan/2009
Updated:
02/Jan/2009
Status:
Publish
Types: Code
|
This code samples demonstrates the following: 1. DataBinding a combobox to the same Datasource as a DataGridView and have updated selection in the combobox be reflected immediately in the grid. 2. DataBinding with "OnPropertyChange", rather than "OnValidation" which is a temporary workaround while issue VWG-3933 is being fixed. 3. Sharing the same instance of a dataset between a form and a "standalone" UserControl with it's own private variables for storing it's DataSet member. Changing data in either the Form or the UserControl, updates both because of the databindings and sharing. 4. Sharing the same instance of a dataset between multiple forms and UserControls in same fashion as in 3. Updating data in any one of the "slave forms", updates all the other "slave forms" as well as the masterform and it's UserControl. To try this out, click either of the "Open" buttons to open one or more "slave forms". then try changing data in any of the forms, or on the master form and see the data change on all instances. Note: Codes are submitted as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it. Terms of Agreement: By using this code, you agree to the following terms... 1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge. 2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws. 3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
About the author
Related Articles
|
Data Controls
|
|
|
Handling large amounts of data is always challenging. Even more so when working with AJAX since one has to work on seamlessly updating the local data cache as the user scrolls through the list. Visual WebGui’s list controls do just that. Visual WebGui unleashes the full power of lists and combos ena...
Tags:
Architects, Developers, Data Binding, C#, 1. Beginner, 2. Intermediate, 3. Advanced, Data Binding, Pre v6.3, v6.3, v6.4 and Later
|
|
|
Tags:
Architects, Developers, C#, VB.NET, 1. Beginner, 2. Intermediate, 3. Advanced, Pre v6.3, v6.3, v6.4 and Later
|
|
|
This video demonstrates how to work with user controls.
Tags:
Developers, Drag & Drop, 1. Beginner, 2. Intermediate, 3. Advanced, Customization, Layouting, Pre v6.3, v6.3, v6.4 and Later
|
|
|
This sample application was created on VWG v6.3.x.
The creator of this application suggests that VWG v6.4 would give much greater flexibility.
Tags:
Architects, Developers, Events, Resource Handlers, VB.NET, 2. Intermediate, 3. Advanced, Customization, Layouting, Pre v6.3, v6.3
|
|
|
This sample code demonstrates working with user controls to simulate frames
Tags:
Developers, Navigation, 1. Beginner, 2. Intermediate, Navigation, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
|
|
|
Tags:
Developers, Navigation, 1. Beginner, 2. Intermediate, Navigation, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
|
|
|
|