どうか、ここで何が問題なのですか
foreach (DataGridViewRow row in frm02.dgv02.Rows)
{
foreach (DataGridViewCell cell in row.Cells)
{
if (cell.Value.ToString() == "323")
//if (cell.RowIndex == 3)
{
cell.Selected = true;
NullReferenceExceptionが発生しました
私が最初にifを2番目のものに置き換えると、それは機能します。