Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2010  |  syntax: VB.NET  |  size: 0.38 KB  |  hits: 124  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Public Class Form1
  2.  
  3.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  4.         Dim row0 As String() = {"3/5/1970", "Matthew's Birthday"}
  5.         With Me.DataGridView1.Rows
  6.             .Add(row0)
  7.         End With
  8.         With Me.DataGridView1
  9.             .Columns(0).DisplayIndex = 0
  10.         End With
  11.     End Sub
  12.  
  13. End Class