I am receiving this error Object reference not set to an instance of an object. When I am trying my code:
for (int i = 1; i < dgv.RowCount; i++)
{
rtb.Text = rtb.Text+ dgv.Rows[i].Cells[0].Value.ToString();
}
Where rtb is a richtextbox and dgv is a datagridview with 4 columns . Ty for the help