Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set CurrentItem in datagrid
Message
De
30/08/2011 16:34:48
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Titre:
Set CurrentItem in datagrid
Divers
Thread ID:
01522326
Message ID:
01522326
Vues:
88
I have a datagrid in a WPF form. The datagrid is bound to a collection of employees.

When the form loads, I know that I want to set the current row of that datagrid to a certain employee's record based on that employee's ID.

I find the employee record by doing:

var e = DBContext.Employee.Where(x=>x.EmployeeID == empID).First();

How do I set the datagrid's current row to this employee's record and set focus on the datagrid?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform