private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { try { SqlCommand novahodnota = new SqlCommand("...", spojeni); spojeni.Open(); SqlDataReader precti = novahodnota.ExecuteReader(); precti.Read(); zname.Text = precti.GetDecimal(2).ToString(); spojeni.Close(); } catch (Exception ex) { //something } }
GetDecimal(2)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)