for(int i=0;i<this->dataGridView1 ->Rows ->Count-1;i++) { if((bool)this->dataGridView1 ->Rows [i]->Cells [0]->EditedFormattedValue==true ) System::Windows ::Forms ::MessageBox ::Show ("选中,'"+i+"'"); }