728x90
int X1 = 0;
int X2 = 0;
int X3 = 0;
int Row = 0;
 
Row = dataGridView1.CurrentRow.Index;
X1 = dataGridView1[0,Row].Value;
X2 = dataGridView1[1,Row].Value;
X3 = dataGridView1[2,Row].Value;
 
MessageBox.Show("Values in the " + Row.ToString() + ". row : " + X1.ToString()+
                      " " + X2.ToString() + " " + X3.ToString(), "Values");
 
 
728x90

+ Recent posts