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.  [ 2 posts ] 
Author Message
 Post subject: DataGrid row to an Object
PostPosted: Sun Jun 24, 2007 7:31 am 
Newbie

Joined: Tue Jun 12, 2007 3:21 pm
Posts: 3
Hello all,
Can anybody tell me how to read an entire Datagrid row into an NHibernate Object?
The DataGrid was populated using the same Object. Now I need to save it back to the Database with the changes.

Code sample;

Address addrs = new Address();
AddressDAO adrsDAO = new AddressDAO ();

IList addrsList= adrsDAO .GetAddressList(prsnID);

addrsDG.DataSource = addrsList;
addrsDG.DataBind();

I need to populate the Address() object from the DataGrid row(s).

Thank you,
Ernesto.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 24, 2007 10:37 pm 
Hibernate Team
Hibernate Team

Joined: Tue Jun 13, 2006 11:29 pm
Posts: 315
Location: Calgary, Alberta, Canada
NHibernate helps you move data between the database and the business object. What you are asking is moving data between the business object and the UI. This question is better suited on the MSDN forum.

_________________
Karl Chu


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.