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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
venkata kumarRank #5,034 · 314 reputationPosted Feb 9, 2013, 12:27 AM EST
check fallowing code
dataGridView1.Rows.Add();
VulpesRank #55 · 29.2K reputationPosted Feb 9, 2013, 1:10 AM EST
dataGridView1.Rows.Insert(0, 1);
ZAIN ULARIFEEN118 reputationPosted Mar 1, 2013, 9:17 PM EST
int position=0;
DataTable.Rows.InsertAt(dr,Position);
Rakesh Kaushik29 reputationPosted Mar 1, 2013, 11:50 PM EST
DataGridViewColumn newCol = new DataGridViewColumn();
DataGridViewCell newCell = new DataGridViewTextBoxCell();
newCol.CellTemplate = newCell;
newCol.HeaderText = "columnheaderDisplayName";
newCol.Name = "columnHeaderName";
datagridview1.Columns.Add(newCol);