Answers for "wpf datagrid model get selected row"

C#
0

c# datagridview get selected row values

int rowindex = dataGridView1.CurrentCell.RowIndex;
int columnindex = dataGridView1.CurrentCell.ColumnIndex; 

dataGridView1.Rows[rowindex].Cells[columnindex].Value.ToString();
Posted by: Guest on August-28-2021
0

get selected item datagrid wpf

private void Row_DoubleClick(object sender, MouseButtonEventArgs e)
{
    ClassName classObj = dataGridName.SelectedItem as ClassName;
    string id = classObj.ID;
}
Posted by: Guest on December-20-2021

Code answers related to "wpf datagrid model get selected row"

C# Answers by Framework

Browse Popular Code Answers by Language