Hello,
In UWP DataGrid I have DataGridRow.
How to get Item attached to this DataGridRow?
Hello,
In UWP DataGrid I have DataGridRow.
How to get Item attached to this DataGridRow?
not exactly sure what you are trying to do here could you explain what you are trying to do better
Hello, Welcome to Micorosoft Q&A,
How to get Item attached to this DataGridRow?
For your scenario, you could get DataGridRow from LoadingRow event then get the row from DataGridRowEventArgs. If you want to get attached item, you could get item with row DataContext like the following.
private void MyDataGrid_LoadingRow(object sender, DataGridRowEventArgs e)
{
var row = e.Row;
var item = row.DataContext;
}
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
7 people are following this question.