<?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/"
	>

<channel>
	<title>code for asp.net &#187; ComboBox SelectedItem</title>
	<atom:link href="http://www.codeforasp.net/tag/combobox-selecteditem/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codeforasp.net</link>
	<description>More about asp.net ajax silverlight MVC</description>
	<lastBuildDate>Tue, 02 Mar 2010 10:17:59 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>winforms ComboBox DataSource</title>
		<link>http://www.codeforasp.net/winforms-combobox-datasource.html</link>
		<comments>http://www.codeforasp.net/winforms-combobox-datasource.html#comments</comments>
		<pubDate>Sat, 07 Nov 2009 06:29:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Common Controls]]></category>
		<category><![CDATA[ComboBox SelectedItem]]></category>
		<category><![CDATA[combobox selectedvalue]]></category>
		<category><![CDATA[Combox selected value]]></category>
		<category><![CDATA[winform ComboBox]]></category>

		<guid isPermaLink="false">http://www.codeforasp.net/?p=529</guid>
		<description><![CDATA[Adding connectionString in App.config file
&#60;/configSections&#62;
&#60;appSettings&#62;
&#60;add key=&#8221;ConnectionString&#8221; value=&#8221;Persist Security Info=False;Data Source=lokesh;Initial Catalog=winForms;User ID=sa;Password=xyz;&#8221; /&#62;
&#60;/appSettings&#62;


Winform ComboBox Databinding
private void ComboBox1_Load(object sender, EventArgs e)
{
SqlConnection objConn = new SqlConnection(ConfigurationSettings.AppSettings["ConnectionString"]);
SqlCommand objCmd = new SqlCommand(&#8221;select CategoryID,Category from tblCategory&#8220;, objConn);
DataSet objDataset= new DataSet();
SqlDataAdapter objDa = new SqlDataAdapter(objCmd);
objConn.Open();
objDa.Fill(objDataset);
comboBox1.DataSource = objDataset.Tables[0];
comboBox1.DisplayMember = &#8220;Category&#8221;;
//comboBox1.ValueMember = &#8220;CategoryID&#8221;;
comboBox1.ValueMember = &#8220;Category&#8221;; //Remember this
objConn.Close();
}
Winform ComboBox SelectionChanged Event
private void comboBox1_SelectionChangeCommitted(object sender, [...]]]></description>
		<wfw:commentRss>http://www.codeforasp.net/winforms-combobox-datasource.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight ComboBox</title>
		<link>http://www.codeforasp.net/silverlight-combobox.html</link>
		<comments>http://www.codeforasp.net/silverlight-combobox.html#comments</comments>
		<pubDate>Tue, 03 Nov 2009 10:27:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Controls]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[ComboBox]]></category>
		<category><![CDATA[ComboBox SelectedItem]]></category>
		<category><![CDATA[ComboBox1_SelectionChanged]]></category>
		<category><![CDATA[IsSelected]]></category>
		<category><![CDATA[ItemSource]]></category>
		<category><![CDATA[Selected Value]]></category>

		<guid isPermaLink="false">http://www.codeforasp.net/?p=491</guid>
		<description><![CDATA[Silverlight comboBox is an xaml control. Its Syntax looks like in Xaml
&#60;ComboBox&#62;&#60;/ComboBox&#62;
Margin, Width and Height properties will adjust the controls width and height.
Margin property will adjust the control location of the parent user control.
X:Name is the property to the comboBox represent the ID of the control
Vertical and Horizontal alignment properties are used to set alignment [...]]]></description>
		<wfw:commentRss>http://www.codeforasp.net/silverlight-combobox.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
