I tried to get row like this :
DataGridRow row = (DataGridRow)dataGrid.ItemContainerGenerator.ContainerFromIndex(i);
TextBlock cellContent = dataGrid.Columns[0].GetCellContent(row) as TextBlock;
But I only got null
. Is there another solution? What am I doing wrong?
I want to get data from my cells. My cells are checkboxes.
See Question&Answers more detail:os