I am working on POS System.I am selecting product descreptions from textbox but how I select the same product price ??
public void autoFill(TextBox abc) {
SqlCommand cmd = new SqlCommand("SELECT * FROM pProduct",cnn.con);
SqlDataReader rd;
try
{
cnn.con.Open();
rd = cmd.ExecuteReader();
while (rd.Read()) {
abc.AutoCompleteCustomSource.Add(rd["Descreption"].ToString());
}
rd.Close();
cnn.con.Close();
}
catch (Exception ex) {
MessageBox.Show(ex.ToString());
}
}