14-10-18, 04:55 PM
كود :
Private Sub DataGridView1_CellFormatting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles DataGridView1.CellFormatting
If e.ColumnIndex = 3 Then
Try
e.Value = CDate(e.Value)
e.CellStyle.Format = "yyyy/MM/dd"
Catch ex As Exception
End Try
End If
End Subسبحان الله وبحمده سبحان الله العظيم و الحمد لله ولا اله الا الله والله اكبر
