I have a datagridview in which 8 columns. I have to display selected cells from datagridview into textbox. I am able to display value in taxtbox from datagridview. My Problem is with date format. In datagridview and query and ms access database date format is "MM-dd-yyyy"" format but when i display datagridview cell value in textbox it is display as "ddd-MM-dd-yyyy" format. I need it should be display as "MM-dd-yyyy". What I have tried: <pre>I tried: dataGridView1.Columns["Processing Date"].DefaultCellStyle.Format = "MM/dd/yyyy"; dataGridView1.Columns["Due Date"].DefaultCellStyle.Format = "MM/dd/yyyy";
textBox??.Text = row.Cells[?].Value.ToString("MM/dd/yyyy");
string stringtodate = ((DateTime)row.Cells[4].Value).ToString("MM-dd-yyyy"); textBox9.Text = stringtodate;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)