if (e.RowIndex >= 0 && ((DataGridView)sender).Columns[e.ColumnIndex].GetType() == typeof(DataGridViewButtonColumn)) { DataGridViewRow row = (DataGridViewRow)dataGridView1.Rows[0].Clone(); dataGridView1.Rows.Add(row); MessageBox.Show(e.ColumnIndex.ToString()+' '+e.RowIndex); }