datagridview already contains 5 empty rows,i want to add new row at the position 0 and so on...
plzz,,,,,, AnyOne Can Help Me
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rakesh KaushikPosted Mar 2, 2013, 4:50 AM
DataGridViewColumn newCol = new DataGridViewColumn();
DataGridViewCell newCell = new DataGridViewTextBoxCell();
newCol.CellTemplate = newCell;
newCol.HeaderText = "columnheaderDisplayName";
newCol.Name = "columnHeaderName";
datagridview1.Columns.Add(newCol);
ZAIN ULARIFEENPosted Mar 2, 2013, 2:17 AM
int position=0;
DataTable.Rows.InsertAt(dr,Position);
VulpesPosted Feb 9, 2013, 6:10 AM
dataGridView1.Rows.Insert(0, 1);
venkata kumarPosted Feb 9, 2013, 5:27 AM
check fallowing code
dataGridView1.Rows.Add();