title: How to simplify this code in VB.NET
body: <p>I have following code for 3 DataGridView Controls in my VB.NET winform application. How can I simplify this code?</p>
  
  <pre><code>    With DataGridView1
          .Columns.Add("Column 0", "TaskName")
          .AutoResizeColumns()
      End With
  
      With DataGridView2
          .Columns.Add("Column 0", "TaskName")
          .AutoResizeColumns()
      End With
  
      With DataGridView3
          .Columns.Add("Column 0", "TaskName")
          .AutoResizeColumns()
      End With
  </code></pre>