<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>C# Tips &#187; ComboBox</title>
	<atom:link href="http://csharptips.wordpress.com/tag/combobox/feed/" rel="self" type="application/rss+xml" />
	<link>http://csharptips.wordpress.com</link>
	<description>my technical experience regarding C# programming</description>
	<lastBuildDate>Tue, 01 Dec 2009 06:15:48 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='csharptips.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/bb4e4f1dc70d95a023d9eb43d0b91064?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>C# Tips &#187; ComboBox</title>
		<link>http://csharptips.wordpress.com</link>
	</image>
			<item>
		<title>Using SelectionChangeCommitted event of ComboBox</title>
		<link>http://csharptips.wordpress.com/2009/05/12/using-selectionchangecommitted-event-of-combobox/</link>
		<comments>http://csharptips.wordpress.com/2009/05/12/using-selectionchangecommitted-event-of-combobox/#comments</comments>
		<pubDate>Tue, 12 May 2009 05:19:10 +0000</pubDate>
		<dc:creator>SkilledDeveloper</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ComboBox]]></category>

		<guid isPermaLink="false">http://csharptips.wordpress.com/2009/05/12/using-selectionchangecommitted-event-of-combobox/</guid>
		<description><![CDATA[If you want to capture changes in ComboBox you can use &#8216;SelectedIndexChanged&#8217; or &#8216;SelectedValueChanged&#8217; events. However, if you want to get changes only when the user changes the selection, use &#8216;SelectionChangeCommitted&#8217; event instead.
SelectionChangeCommitted occurs only when the ComboBox selection changes by user (via keyboard or mouse) and it is not raised when the selection changes [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csharptips.wordpress.com&blog=4757285&post=36&subd=csharptips&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you want to capture changes in ComboBox you can use &#8216;SelectedIndexChanged&#8217; or &#8216;SelectedValueChanged&#8217; events. However, if you want to get changes only when the user changes the selection, use &#8216;SelectionChangeCommitted&#8217; event instead.</p>
<p><strong>SelectionChangeCommitted</strong> occurs only when the ComboBox selection changes by user (via keyboard or mouse) and it is not raised when the selection changes programmatically.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/csharptips.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/csharptips.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/csharptips.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/csharptips.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/csharptips.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/csharptips.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/csharptips.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/csharptips.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/csharptips.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/csharptips.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csharptips.wordpress.com&blog=4757285&post=36&subd=csharptips&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://csharptips.wordpress.com/2009/05/12/using-selectionchangecommitted-event-of-combobox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b032187903bdb8726b9b3f840c04ab7c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">SkilledDeveloper</media:title>
		</media:content>
	</item>
		<item>
		<title>DataBound ComboBox Problem</title>
		<link>http://csharptips.wordpress.com/2009/02/03/databound-combobox-problem/</link>
		<comments>http://csharptips.wordpress.com/2009/02/03/databound-combobox-problem/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 07:15:44 +0000</pubDate>
		<dc:creator>SkilledDeveloper</dc:creator>
				<category><![CDATA[Problems and Solutions]]></category>
		<category><![CDATA[BindingContext]]></category>
		<category><![CDATA[ComboBox]]></category>
		<category><![CDATA[DisplayMember]]></category>
		<category><![CDATA[SelectedValue]]></category>
		<category><![CDATA[ValueMember]]></category>

		<guid isPermaLink="false">http://csharptips.wordpress.com/?p=21</guid>
		<description><![CDATA[Problem: 
When you want to use a data bound ComboBox in .NET (C#, VB, etc), you should set a few properties such as DataSource, DisplayMember and ValueMember.
It works fine unless you want to set SelectedValue for the first time. It won&#8217;t be set.
Solution:
I found that BindingContext property must be used before initializing SelectedValue:
ComboBox1.BindingContext = new [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csharptips.wordpress.com&blog=4757285&post=21&subd=csharptips&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong><em>Problem: </em></strong><br />
When you want to use a data bound ComboBox in .NET (C#, VB, etc), you should set a few properties such as DataSource, DisplayMember and ValueMember.<br />
It works fine unless you want to set SelectedValue for the first time. It won&#8217;t be set.</p>
<p><strong><em>Solution:</em></strong><br />
I found that <strong>BindingContext</strong> property must be used before initializing SelectedValue:</p>
<p>ComboBox1.BindingContext = new BindingContext();<br />
ComboBox1.DataSource = MyDataSet.DefaultView<br />
ComboBox1.DisplayMember = &#8220;Title&#8221;;<br />
ComboBox1.ValueMember = &#8220;Code&#8221;;<br />
ComboBox1.SelectedValue = 1;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/csharptips.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/csharptips.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/csharptips.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/csharptips.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/csharptips.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/csharptips.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/csharptips.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/csharptips.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/csharptips.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/csharptips.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=csharptips.wordpress.com&blog=4757285&post=21&subd=csharptips&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://csharptips.wordpress.com/2009/02/03/databound-combobox-problem/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b032187903bdb8726b9b3f840c04ab7c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">SkilledDeveloper</media:title>
		</media:content>
	</item>
	</channel>
</rss>