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
Raza us Samad NA
NA
1
3.5k
LINQ: Show parent table value in child table Gridview using Databinding Source
Jul 19 2011 10:01 AM
hello,
i have two tables containing a picture gallery
1. Album (parent) 2. Photo (child)
i want to show 'photo table' into gridview using a binding source. but 'photo table' show last column (which is the foreign key) as an object of 'Album table'. it is one of the property of LINQ. but how can i show only a single value (i.e: album name) from parent table (Album) into child table's gridview (Photo).
my current code is
[code]/*
photogalleries is my photo table
and gridview attached to bindingsource
*/
private void Gallery_Load(object sender, EventArgs e)
{
TestAppDBDataContext db = new TestAppDBDataContext(AppConn.AppConnection);
photogalleryBindingSource.DataSource = db.photogalleries;
}[/code]
kindly help me!!
Regards,
Raza us Samad
Reply
Answers (
1
)
Simulate a KeyPress in C# code
DateTime Data Problems in Silverlight and C#