Programming/C#을즐기자

dataGridView에 CheckBoxColumn 하드코딩으로 넣기

bluelimn 2008. 8. 21. 22:02
728x90

DataGridViewCheckBoxColumn chkBillable = new DataGridViewCheckBoxColumn();

chkBillable.Name = "colTimeSheetBillable";

chkBillable.HeaderText = "Billable";

chkBillable.DataPropertyName = "TimeSheetBillable";

chkBillable.ReadOnly = true;

dataGridTimesheet.Columns.Add(chkBillable);

728x90