I have DataGridRow
of a DataGrid
, how can I get the individual column values from it? See the code below.
var itemsSource = MESearchDatagrid.ItemsSource as IEnumerable;
if (itemsSource != null)
{
foreach (var item in itemsSource)
{
var row = MESearchDatagrid.ItemContainerGenerator.ContainerFromItem(item) as DataGridRow;
if (row != null)
{
//How to get the Cell value?
}
}
}