出错请高人指点。用户代码未处理nullreferenceexception未将对象引用设置到对象的实例,
出错请高人指点,以下代码编译能过,运行报错。“用户代码未处理nullreferenceexception未将对象引用设置到对象的实例”
private void dataGridView1_CurrentCellChanged(object sender, EventArgs e)
{
int intCurrentRowNumber = this.dataGridView1.CurrentCell.RowIndex;
string aa = this.dataGridView1.Rows[intCurrentRowNumber].Cells[0].Value.ToString();
}