Hi.. new with Linq and very excited with this feature. However, I want to see if I can do the following with LINQ:
DataView source = (DataView) MyDataGrid.ItemsSource;
foreach (DataRowView vw in source)
{
if (vw.Row[dummyColumnIndex] != null &&
vw.Row[dummyColumnIndex].ToString() == DisplayValue)
{
vw.Row[dummyColumnIndex] = string.Empty;
break;
}
}
Notice that I have a break in my foreach loop, meaning that I just need to reset the first match row's column value to empty string.
Thanks!