how to find value of a datagride in wpf
how to find value of a datagride in wpf
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
chinmaya parijaPosted Oct 4, 2012, 9:42 AM
{
Process[] p = Process.GetProcesses();
List
foreach (Process ps in p)
{
li pp = new li();
pp.NAME = ps.ProcessName.ToString();
lst.Add(pp);
}
gv1.ItemsSource = lst;
}
public class li
{
public string NAME
{
get;
set;
}
}
private void gv1_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
MessageBox.Show(((li)e.AddedItems[0]).NAME);
}