Code Snippet
private void Form36_Load(object sender, EventArgs e)
{
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.Rows.Add();
this.dataGridView1.CellEndEdit += new DataGridViewCellEventHandler(dataGridView1_CellEndEdit);
}
void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
{
if (e.ColumnIndex == this.dataGridView1.Columns.Count - 1 && e.RowIndex == this.dataGridView1.RowCount - 1)
{
if(MessageBox.Show("Do you want to add another row?","Ask", MessageBoxButtons.YesNo) == DialogResult.Yes)
this.dataGridView1.Rows.Add();
}
}