this is my code,
SqlConnection con = new SqlConnection(cs);
string query =
"select Student_Fees from Student_Table where Student_Fees=" + namecomboBox.SelectedValue;
SqlCommand cmd = new SqlCommand(query, con);
con.Open();
SqlDataReader dr = cmd.ExecuteReader();
var DataSet = new DataTable();
DataSet.Load(dr);
totalfeestextBox.Text = DataSet.Rows[0].ToString();
ill try all options. but not successfully.