ComboBox

Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

How do I get the selected value in c# from the selected code below. using c#


<ComboBox Grid.Column="2" Grid.Row="11" Height="29" HorizontalAlignment="Left" Margin="88,3,0,0" Name="strDOBMM" VerticalAlignment="Top" Width="103" BorderBrush="#FF3A9ADF">
<ComboBoxItem Content="January" />
<ComboBoxItem Content="Feburary" />
<ComboBoxItem Content="March" />
<ComboBoxItem Content="April" />
<ComboBoxItem Content="May" />
<ComboBoxItem Content="June" />
<ComboBoxItem Content="July" />
<ComboBoxItem Content="August" />
<ComboBoxItem Content="September" />
<ComboBoxItem Content="October" />
<ComboBoxItem Content="November" />
<ComboBoxItem Content="December" />
</ComboBox>


I've tried .selectedvalue and .selecteditem and neither works.


Many thanks



All times are GMT -5. The time now is 7:50 AM.
Previous Next