title: removing row header in datagrid view programmatically
body: <p>I have a Datagrid view, and I want to remove the row header for all rows...</p>
  <p>I am trying to remove the rounded part as shown in the below figure (Row header)<img src="https://i.stack.imgur.com/ZyWc0.png" alt="" /></p>
  <p>For that, I have written the code below.... but it's not working...</p>
  <pre><code>     private void dgvProducts_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e)
       {
           e.PaintCells(e.ClipBounds, DataGridViewPaintParts.All);
  
           e.PaintHeader(DataGridViewPaintParts.All
               | DataGridViewPaintParts.Border
               | DataGridViewPaintParts.None
               | DataGridViewPaintParts.SelectionBackground
               | DataGridViewPaintParts.ContentBackground);
  
           e.Handled = true;
  
       }
  </code></pre>
  <p>Would any pls give any sample code for removing the row header in Datagrid view .....</p>
  <p>Many thanks. In advance.....</p>