3
Answers

Null Object reference not set to an instance of an object

            Invoiceget data = new Invoiceget();
            

            data.slno = DataGridView1.CurrentRow.Cells["Column1"].Value.ToString();

its showing the correct slno if i move mouse over data.slno
and mean time i am getting  Null Object reference not set to an instance of an object

Answers (3)