Answers for "datagridcheckboxcolumn does not contains a definition for Checked"

0

datagridcheckboxcolumn does not contains a definition for Checked

public IEnumerable<Microsoft.Windows.Controls.DataGridRow> GetDataGridRows(Microsoft.Windows.Controls.DataGrid grid)
{
    var itemsSource = grid.ItemsSource as IEnumerable;
    if (null == itemsSource) yield return null;
    foreach (var item in itemsSource)
    {
        var row = grid.ItemContainerGenerator.ContainerFromItem(item) as Microsoft.Windows.Controls.DataGridRow;
        if (null != row) yield return row;
    }
}
Posted by: Guest on April-01-2021

Code answers related to "datagridcheckboxcolumn does not contains a definition for Checked"

Browse Popular Code Answers by Language