Skip to content

Instantly share code, notes, and snippets.

@xmfcx
Last active August 29, 2015 14:24
Show Gist options
  • Save xmfcx/e10df87d1761270e9104 to your computer and use it in GitHub Desktop.
Save xmfcx/e10df87d1761270e9104 to your computer and use it in GitHub Desktop.
DataTable dt = new DataTable();
myDataGridView.DataSource = dt;
dt.Columns.Add("Time Column", typeof (DateTime));
dt.Rows.Add(DateTime.Now);
/*
I need to show it on dataGridView through
DateTime.ToString("dd/MMM/yyyy") format
but how?
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment