Hi,
I've got two tables in my entity Model:
Author: AuthorID, FirstName, LastName and
Article: ArticleID, Title, Body, AuthorID.
I've got also DataGridView with 'Context.Articles' as it's datasource. I've binded Textbox text property with "Title" column of Article table. That work fine.
But what sholud I do to show FirstName value of table Author in my second textBox when I'm moving throught DataGridView ? When I bind this TextBox with Author table there's always the same value (from first row of Author table). Should I use some entity relations or something ?
I'de gratefull for few sample code lines :)
regards,
Loading
doomed moralePosted May 14, 2010, 9:53 AM
I can see relations in my Entity diagram but I don't know how to use it ..
CrishPosted May 14, 2010, 8:25 AM
you need to get data with data relation of Author and Article.
thanks