判断datagridview 中的checkbox列是否被选中

    技术2022-05-11  46

     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+"'");     }


    最新回复(0)