473,791 Members | 3,097 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

custom business objects and bindingsource

I have a custom business object collection based on the CSLA.NET framework
from Rockfor Lhotka's "Expert C# Business Objects" book.

I bound my winform to the object and when I open the screen the records are
there and I can scroll through them. The problem is when I call
BindingSource.A ddNew() it doesn't seem to work. I stepped through the code
and a new object is being created, it just doesn't get added to the list.
If I manually call the Add method of my business collection class, I get a
new record on the screen as I would expect.

Does anyone have any advise on what to look for here? I'm kind of new to
business objects and the data binding part is proving to be somewhat tricky.

TIA,

Mike Rodriguez
Nov 17 '05 #1
0 1643

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
5342
by: Noel | last post by:
Hello, I'm currently developing a web service that retrieves data from an employee table. I would like to send and retrieve a custom employee class to/from the webservice. I have currently coded the custom employee class and have built it as a separate library (employee.dll). This employee.dll is being referenced by both the web service and the windows application. I face the following problem when I send this class to the webservice.
1
2588
by: David Veeneman | last post by:
Hi-- I'm trying to databind a business object to several controls using the DataBindings property of the controls, like this: textBoxStartDate.DataBindings.Add("Text", CurrentStep, "StartDate", true, DataSourceUpdateMode.OnValidation, String.Empty, "d"); Where CurrentStep is a business object of type ProjectStep, with several properties, such as the StartDate property shown above.
4
5863
by: Betina | last post by:
Hi, I've created a Person-Object which implemts INotifyPropertyChanged. This Person-Object contains an Address-Object which implements INotifyPropertyChanged too. Then I create a BindingList<Person> which is the DataSource for my BindingSource. I created some TextBoxes bound to this BindingSource like this: Binding b = new Binding("Text", bindingSource, "Name");
5
7904
by: ME | last post by:
I have an object we'll call it MyObject. MyObject has a property calld MyBusinessObjects of type List<IMyBusinessObject2>. IMyBusinessObject2 is a defined interface in my application (See below). I want to bind the MyBusinessObjects property to a ComboBox as follows: ComboBox cbData = new ComboBox(); BindingSource bsSource = new BindingSource(); bsSource.DataSource = MyObject.MyBusinessObjects; cbData.DisplayMemeber = "Text";
2
9648
by: Steve | last post by:
Hi- OK, I've got a DataGridView, I've created a BindingSource from one of my Business Entity object (based on generated classes from EntitySpaces) I've left the default column setup so that all the columns are displayed. My DataSource objects are composed like this: class Customer : esCustomer // where esCustomer is the EntitySpaces class that was generated
0
1153
by: w31chang | last post by:
Hi, I create custom entity objects, a custom collections for the entity objects and a custom object that acts like a collection of the custom entity collections which I called EntitySet Object. The EntitySet is used to bind the entity collections to windows form bindingsource in design time. After 2 weeks of bloody coding and reading really "Helpfull" msdn docs, thanks to http://www.freeweb.hu/noiseehc/ finally I've managed to create the...
1
2911
by: timnels | last post by:
I have a custom business object that implements INotifyPropertyChanged and IEditableObject. The collection of these objects inherits from BindingList<T>. I created a BindingSource from which a grid (list of objects) and a detail groupbox where bunch of textboxes are bound to them. Problem is I need to detect 2 things: 1. A way to know the current record is dirty (meaning any bound property has changed), so I can enable/disable the...
0
1068
by: LieWait | last post by:
I have a custom business object that implements INotifyPropertyChanged and IEditableObject. The collection of these objects inherits from BindingList<T>. I created a BindingSource from which a grid (list of objects) and a detail groupbox where bunch of textboxes are bound to them. Problem is I need to detect 2 things: 1. A way to know the current record is dirty (meaning any bound property has changed), so I can enable/disable the Save...
5
3487
by: Simon Woods | last post by:
Hi Does anyone know if there any dotnet software out there which converts a dataset into a collection of custom objects, programmatically i.e. actually creates the class structure and collection class on-the-fly based on the fields in the dataset and then creates and populates the classes and adds them into the collection. Thanks
0
9669
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9515
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10207
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10155
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9995
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5559
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4110
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.