C sharp gurus needed! data+combo+selected

  • Thread starter Thread starter ZZZ
  • Start date Start date
Z

ZZZ

int dummy=Convert.ToInt32(das.Tables[0].Rows[0].ItemArray[0].ToString());

MessageBox.Show(dummy.ToString());

this.combo_opNaam.SelectedValue=dummy;

MessageBox.Show(this.combo_opNaam.SelectedValue.ToString());


first messagebox : 16,

second: "object reference is not set to an instance of an oject"
 
The error is likely because

this.combo_opNaam

is null.

Christian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top