Solved

C# WPF Datagrid row selected event

Posted on 2013-02-07
1
5,257 Views
Last Modified: 2013-02-08
Hi,

I have a wpf application which contains a grid which contains two datgrids.

The top datagrid is populated when the application loads up. The bottom datagrid is empty. What I would like to do is that when a user selects a row or cell in a row in the top datagrid that the bottom grid populates with certain data (dependent on the row selected).

How would I code that & what event would be best to use?

Thanks,
M
0
Comment
Question by:mcs26
1 Comment
 
LVL 12

Accepted Solution

by:
Jitendra Patil earned 500 total points
Comment Utility
Please try this link it contains the practical example with code for you.

WPF DataGrid Practical Examples

hope this helps.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now