That means - when I click on the DataSource Property of BindingSource Control the Order object is there. Expanding that Object shows only one property - ValidationErrorMessages
On May 25, 5:04 am, Volker Röppischer <vol...@roeppischer.de> wrote: > Hi, > > what exactly means "...But for some reason I cannot bind the..." ? > > Greets > > Volker > > -----Ursprüngliche Nachricht----- > Von: castle-project-users@googlegroups.com > [mailto:castle-project-us...@googlegroups.com] Im Auftrag von Michael.d > Gesendet: Montag, 25. Mai 2009 02:16 > An: Castle Project Users > Betreff: Newbie question - Windows forms databinding > > Hi, > > I am very new to ActiveRecord and trying to use it in very small and > simple project (C#, VS 2008 Winforms) > > This is simple order entry > I have Order AR Object in my model that have List of OrderDetail > objects > > I am pretty much OK with displaying list of orders bound to datagrid > on the form > But I am having troubles to implement Order Edit Form > > Again everything seems to be very simple I must be missing something > very basic. > > At the top of the form I display bunch of fields (Customer Combo box, > Order Date datepicker, etc.) > all fields are bound via BindingSource component with Data soure set > to my Order Object. > > Now the tricky (for me) part: > I want to display and edit Order details in datagrid (Order Detail > have only 4 properties: Id (PK), Order (reference to master Order), > Product (Another AR object in my Model) and Quantity) > So in datagrid I am going to show only Product and Quantity columns > where product is compobox that allow only to select existing records. > > Usualy I would use anoder bindingsource object with data set to list > of details and bind the grid to that bs. > > But for some reason I cannot bind the Object.Details property (which > is of type List<OrderDetail>) to bindingSource. > > Any idea what i am doing wrong? > > Thanks in advance. > Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-users@googlegroups.com To unsubscribe from this group, send email to castle-project-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---