Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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;
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: using == is inefficient unity 
Csharp :: c# generic type converter 
Csharp :: unity enable hdr picker 
Csharp :: range to 01 
Csharp :: return last row if all other condition fails in linq c# 
Csharp :: remotefx 3d video adapter warning 
Csharp :: unity remove all child 
Csharp :: C# Associativity of Operators 
Csharp :: how to update modal class using dbfirst in asp.net core 
Csharp :: math round to next integer c# 
Csharp :: button pervious for picturebox c# 
Csharp :: How to get 4 end len in string c# 
Csharp :: how to make a respaen script in unity 
Csharp :: ExpandoObject Syntax that Compile 
Csharp :: DotNet web Api Token based Authentication 
Csharp :: Get the Default gateway address c# 
Csharp :: epmty char c# 
Csharp :: visual studio auto generate and setters 
Csharp :: object shaking unity 
Csharp :: how to mock abstract httpcontext using moq .net core 
Csharp :: Named Entity Extraction C# 
Csharp :: aquarette 
Csharp :: how to clear stackpanel wpf 
Csharp :: C# string go to line 
Csharp :: obs mfplat.dll 
Csharp :: how to coppy a portion of an array in c# 
Csharp :: split array into pieces of x length c# 
Csharp :: unity inspector sliders 
Csharp :: var c# 
Csharp :: euler angles to quaternion unity 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =