Answers for "ArgumentOutOfRangeException when sorting a DataGridView using a custom IComparer"

C#
0

ArgumentOutOfRangeException when sorting a DataGridView using a custom IComparer

if (row1.ReadOnly == row2.ReadOnly)  // change && to ==
    {
        return 0;
    }
    else if (row1.ReadOnly && !row2.ReadOnly)
    {
        return 1;
    }
    else
    {
        return -1;
    }
Posted by: Guest on May-06-2022

C# Answers by Framework

Browse Popular Code Answers by Language