title: Uprading VB6 MSFlexGrid to VB.NET
body: <p>I want to upgrade MSFlexGrid to .net datagridview,
  what is equivalent code for these code??</p>
  
  <pre><code>With gridview
      If .Row &gt; .FixedRows Then
          bDoNotEdit = True
          .Row = .Row - 1
          bDoNotEdit = False
      End If
      If .Row &lt; .Rows - 1 Then
          bDoNotEdit = True
          .Row = .Row + 1
          bDoNotEdit = False
      End If
  End With
  </code></pre>