Visual Basic: DataGrid Control
NumberFormat Property Example
This example formats the second column in a DataGrid control as a long date:
Private Sub Command1_Click ()
DataGrid1.Columns(1).NumberFormat = "long date"
End Sub
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This example formats the second column in a DataGrid control as a long date:
Private Sub Command1_Click ()
DataGrid1.Columns(1).NumberFormat = "long date"
End Sub