3
Answers

Null Object reference not set to an instance of an object

suhas setty

suhas setty

11y
1.3k
1
            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)