use this code:
DataGridViewCheckBoxColumn chkcolumn = new DataGridViewCheckBoxColumn();
chkcolumn.Name = "Select";
chkcolumn.HeaderText = "Select";
DataGrid1.Columns.Add(chkcolumn);//For adding to the last index.
DataGrid1.Columns.Insert(0,chkcolumn)//For adding to the first index.
No comments:
Post a Comment