▩▩ 프로그래밍 ▩▩/C#

[C#] DataGridView 셀 가운데정렬

남쿤 2013. 11. 13. 11:54
반응형
dataTable.Columns["name"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
dataTable.Columns["type"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
dataTable.Columns["time"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;


반응형