16,547
社区成员
发帖
与我相关
我的任务
分享
Private Sub DataGridView1_CellFormatting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles DataGridView1.CellFormatting
If DataGridView1.Columns(e.ColumnIndex).Name = "Col1" Then 'Col1表示列名
If e.Value IsNot DBNull.Value Then
e.Value = CDate(e.Value).ToShortDateString
End If
End If
End Sub