-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Bi-directional Binding (ie. Winform Grids) with nHibernate ?
PostPosted: Thu Jun 16, 2005 10:10 am 
Hi All,

Before I spend a lot of time reading/testing..

Can anyone tell me if nHibernate support Bi-Directional binding ?

ie. Can I create say an INVOICE object which is bound to a table, then link the INVOICE object to a Winform DataGrid and edit the grid in real time with updates going into the INVOICE object ??

Any info would be much appreciated..

PS.. Wilsons ORMapper only has read binding, not update.


Top
  
 
 Post subject:
PostPosted: Thu Jun 16, 2005 11:18 am 
Senior
Senior

Joined: Sat May 14, 2005 8:40 am
Posts: 130
Yes, it is possible to use any IList with objects as a datasource for Winforms controls. Don't expect anything fancy though. To take full advantage of Winforms databinding, you have to implement IBindingList and ITypedList. NHibernate collections don't implement this interface, so there is a little extra work to do.

BTW, this has nothing to do with which O/R mapper you choose. It's purely a matter of binding objects to Winforms controls, so NHibernate and WilsonORMapper are the same in this area.

_________________
Cuyahoga


Top
 Profile  
 
 Post subject: How to get bindable collections from nhibernate
PostPosted: Tue Jul 12, 2005 7:06 pm 
Is there anyway to get a bindable collection from nhibernate? I've thought about creating my own BindableList which is just inherits ArrayList and implements IBindingList.. but then I was unsure how I could have this list work with nhibernate. Does anybody have working samples on how to bind (I don't care if you are using windows forms binding or something else that is home grown).


Top
  
 
 Post subject:
PostPosted: Wed Jul 13, 2005 12:39 am 
I found the hardest part of implementing ITypedList is supporting object refrences.

i.e. Person.Department.Name doesn't work as a binding with the standard dot net classes.


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.