Horje
wpf datagrid get selected items Code Example
get selected item datagrid wpf
private void Row_DoubleClick(object sender, MouseButtonEventArgs e)
{
    ClassName classObj = dataGridName.SelectedItem as ClassName;
    string id = classObj.ID;
}
wpf datagrid get selected items
private void DataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
    {
        try
        {
            var row_list = (Item)dg.SelectedItem;
            listblock1.Content = "You Selected: " + row_list.FirstName + " " + row_list.LastName;
        }
        catch { }

    }
    public class Item
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }
    }




Csharp

Related
C# access substring Code Example C# access substring Code Example
get user startup folder path C# Code Example get user startup folder path C# Code Example
convert video to byte array c# Code Example convert video to byte array c# Code Example
Get Component Trail rendere Code Example Get Component Trail rendere Code Example
how to find the text position in excel in c# Code Example how to find the text position in excel in c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9