Friday, October 29, 2010

Add a DataGridViewColumn in DataGridView , C#

DataGridViewColumn dgvc = new DataGridViewColumn();


dgvc.AutoSizeMode = DataGridViewAutoSizeColumnMode.ColumnHeader;

dgvc.HeaderText = st;

dgvc.Name = st;

DataGridViewCell newcell = new DataGridViewTextBoxCell();

dgvc.CellTemplate = newcell;

dgvc.Visible = true;

datagridview1.Columns.Add(dgvc);

datagridview1.Rows[0].Cells[st].Value ="500";

No comments:

Post a Comment

Mat Table Angular

Mat Table in Angular Mat table is used to display data . its a material designed styled data-table . For using Material Table MatTableMo...