Click here to Skip to main content
16,016,789 members

Comments by Member 10381340 (Top 1 by date)

Member 10381340 12-Nov-13 7:01am View    
public void LoadCombo()
{
con = new Connection("Cartridges");
foreach (DataRow row in con.DataS.Tables["Cartridges"].Rows)
{
cboCartridgeCode.Items.Add(row["CartridgeCode"].ToString());
}
con.CloseCon();
}

Object reference not set to an instance of an object... is on the foreach loop (foreach keyword is highlighted), plz help