hola cristian
podrias hacer una consulta linq
DataGridViewRow row = dataGridView1.Rows
.Cast<DataGridViewRow>()
.Where(r => r.Cells["Proceso"].Value.ToString().Equals("D1"))
.First();
y luego pregunta en la fila donde agregas el boton! que estará en el indice
int rowIndex = row.Index;
Creo que seria bueno que colocaras como tienes definido tu datagridview
nota: el linq esta en C#