-->
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: Using 2.0 DataBindingSource
PostPosted: Fri Mar 17, 2006 1:17 pm 
Newbie

Joined: Mon Dec 12, 2005 1:54 pm
Posts: 5
Hi,

I use DataBindingSource with NHibernate objects.

I'd like to bind a DataGridViewColumn to a nested property of my NH class (eg: Customer.Category.Name).

Is somebody can give me back some experience . I already tried :

- create an agregate class wich embeding the Category properties
- use DataGridView.VirtualMode = true and CellValueNeeded event
- use CellFormatting event.

Thank's.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 17, 2006 6:57 pm 
Newbie

Joined: Thu Feb 23, 2006 1:03 am
Posts: 7
Location: Los Angeles, CA
Winform DataGridView not supported nested properties.
You need to flat your object or use Views


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 18, 2006 8:52 am 
Newbie

Joined: Mon Dec 12, 2005 1:54 pm
Posts: 5
Damn...

I need to write agregates classes from my NHibernate entities...

What do you mean by using views ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 20, 2006 11:26 am 
Newbie

Joined: Thu Feb 23, 2006 1:03 am
Posts: 7
Location: Los Angeles, CA
Create database View which will represent flat data and display in in grid


Top
 Profile  
 
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.