Ok I have handled that: Dział = ((Dział)comboBox1.SelectedItem)

I got another question:
I would like to retrive all data from Osoba table so i did:

IList<Osoba> osoby = dbSession.Linq<Osoba>().ToList<Osoba>();
dgvPersons.DataSource = osoby;

I have retreived all information correctly like Name, Adress but there
is foreign key of Dzial (department) - digits

and i retreving in datagridcells always same informations for all
persons:
hms.core.Entites.Dział

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to