ComboBox values Retrival and assign to Stored Procedure
<p>I have ComboBox and I fill it with a Dataset:</p>

<pre><code>comboBox1.DataSource = ds1.Tables[0];
comboBox1.DisplayMember = "post_code";
</code></pre>

<p>where <code>ds1</code> is dataset with one column post_code</p>

<p>It is sucessfuly showing data in ComboBox but when I am trying to save that ComboBox value in Table with:</p>

<pre><code>cmd = new SqlCommand("Mt_Vacancy_mainPreference_insert",con);
cmd.Parameters.Add("@post_name", SqlDbType.NChar).Value = comboBox1.SelectedItem.ToString().Trim();
</code></pre>

<p>it shows Error as Data.DataRowView. I also tried using SelectedValue.</p>
