I have code like that to fill that combo box fill my database
but cant .getString("NameCompany")
error why ? the full code is here
private void FillCombobox()
{
cmd = new SqlCommand("Select * From Penawaran", con);
SqlDataReader dr;
string sName = dr.GetString("NameCustomer");
cbxNamaCustomer.Items.Add(sName);
}