I am working on a name record application and the information is stored in a SQLite database. All columns in the database are TEXT types, except for the date of birth column
private void resultsGrid_DateFormatting(object sender, System.Windows.Forms.DataGridViewCellFormattingEventArgs e)
{
if(resultsGrid.Columns[e.ColumnIndex].Name.Equals("DateOfBirth"))
{
if ((string)resultsGrid.CurrentRow.Cells["DateOfBirth"].Value == DateTime.MinValue.ToString())
{
// Set cell value to ""
}
}
}
Or you might have to cast to DateTime and then compare to MinValue, but it sounds like you have the right idea.