如何获取 DataGridView 单元格的值?
How to get DataGridView cell value?
我需要将我的数组字符串与 DataGridView 单元格值进行比较
string z = DataGridView->Rows[e->RowIndex]->Cells[1]->Value.ToString();
我遇到了问题:
IntelliSense: expression must have class type
我想出了答案,如果其他人需要这里的解决方案,那就是
String^ z = System::Convert::ToString(Grid_Darbuotojai->Rows[e->RowIndex]->Cells[1]->Value);
我需要将我的数组字符串与 DataGridView 单元格值进行比较
string z = DataGridView->Rows[e->RowIndex]->Cells[1]->Value.ToString();
我遇到了问题:
IntelliSense: expression must have class type
我想出了答案,如果其他人需要这里的解决方案,那就是
String^ z = System::Convert::ToString(Grid_Darbuotojai->Rows[e->RowIndex]->Cells[1]->Value);