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.