TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
doomed morale
NA
8
0
Databindings with Entity Framework
May 14 2010 7:55 AM
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,
Reply
Answers (
2
)
Registering Keyboard shortcuts with windows
how to auto refresh my data