I am trying to get a value from a specific cell in a dataGridView.
I know how to choose a Row / Column but not at the same time.
I have tried to get the value from row 3 in column 2 like below. But I cant find a Column member to Rows like this.

dataGridView1->Rows[3]->Columns[2] ?

I tried something like this also but here I will get an Object^. I will need to have a String^ value.

Object^ Sel50 = dataGridView1[3, 2];

I found out a solution:

String^ Number = dataGridView1->SelectedRows[0]->Cells[2]->Value->ToString();

datagridview->Rows[rowCnt]->Cells[1]->Value= rowCnt;

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.