Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
WinFormアプリケーションのDataGridViewセルで日付のフォーマットを変更するには? そのセルのソース形式は「YYYY-MM-DD」で、「DD/MM/YYYY」に変更したいと考えています。どうすればこれを達成できますか?
デフォルトのセル スタイルを変更する。
this.DataGridView1.Columns[0].DefaultCellStyle.Format = "dd/MM/yyyy"
http://msdn.microsoft.com/en-us/library/f9x2790s.aspx