B Ben Dec 20, 2007 #1 I've a date field displayed at a DataGridView, and want to format it to 'yyyymmdd hh:mm:ss'. How would you do that? Thanks, Ben
I've a date field displayed at a DataGridView, and want to format it to 'yyyymmdd hh:mm:ss'. How would you do that? Thanks, Ben
C Chris Shepherd Dec 20, 2007 #2 Ben said: I've a date field displayed at a DataGridView, and want to format it to 'yyyymmdd hh:mm:ss'. How would you do that? Click to expand... Using the Format property on the column. If your columns are determined at runtime by whatever you're loading in the grid, then you can access the column via dataGridView1.Columns["columname"] and then set whatever Format you want from there. Chris.
Ben said: I've a date field displayed at a DataGridView, and want to format it to 'yyyymmdd hh:mm:ss'. How would you do that? Click to expand... Using the Format property on the column. If your columns are determined at runtime by whatever you're loading in the grid, then you can access the column via dataGridView1.Columns["columname"] and then set whatever Format you want from there. Chris.