Click here to Skip to main content
15,038,345 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to add a row to a grid view with a costume values with click to a button how can i do this in c#
Posted

1 solution

   
Comments
f.sarikhani 1-Dec-12 1:10am
   
with this code also dont solve my problem:
private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e)
{
int i;
if (e.ColumnIndex == 10)
{
//dataGridView1 .ne
// dataGridView1.RowCount = dataGridView1.RowCount + 1;
dataGridView1.Rows.AddCopy(e.row index);
// for (i = 0; i < 11; i++)
// dataGridView1.Rows[e.RowIndex + 1].Cells[i] = dataGridView1.Rows[e.RowIndex].Cells[i];
//}
}
f.sarikhani 1-Dec-12 1:20am
   
i work in c# windows application and dont have newrow method for gridview

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900