<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Assigning a DropDownList Value in a ASP.NET GridView Using ObjectDataSource</title>
	<atom:link href="http://peterkellner.net/2008/08/05/assign-dropdownlist-in-aspdotnet-to-gridview-in-objectdatasource/feed/" rel="self" type="application/rss+xml" />
	<link>http://peterkellner.net/2008/08/05/assign-dropdownlist-in-aspdotnet-to-gridview-in-objectdatasource/</link>
	<description>Specializing in Microsoft Web and Database and Sync Technologies</description>
	<lastBuildDate>Fri, 03 Sep 2010 00:48:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mahesh</title>
		<link>http://peterkellner.net/2008/08/05/assign-dropdownlist-in-aspdotnet-to-gridview-in-objectdatasource/comment-page-1/#comment-27832</link>
		<dc:creator>Mahesh</dc:creator>
		<pubDate>Mon, 26 Jul 2010 09:15:34 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/08/05/assign-dropdownlist-in-aspdotnet-to-gridview-in-objectdatasource/#comment-27832</guid>
		<description>hello.,
 code is okay but how to update yes no values in dataBase table..
tell me the that C# Code too</description>
		<content:encoded><![CDATA[<p>hello.,<br />
 code is okay but how to update yes no values in dataBase table..<br />
tell me the that C# Code too</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dante</title>
		<link>http://peterkellner.net/2008/08/05/assign-dropdownlist-in-aspdotnet-to-gridview-in-objectdatasource/comment-page-1/#comment-26216</link>
		<dc:creator>Dante</dc:creator>
		<pubDate>Fri, 19 Feb 2010 17:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/08/05/assign-dropdownlist-in-aspdotnet-to-gridview-in-objectdatasource/#comment-26216</guid>
		<description>http://msdn.microsoft.com/en-us/library/ms972948.aspx
Replace original_ProductID with  ProductID</description>
		<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/ms972948.aspx">http://msdn.microsoft.com/en-us/library/ms972948.aspx</a><br />
Replace original_ProductID with  ProductID</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://peterkellner.net/2008/08/05/assign-dropdownlist-in-aspdotnet-to-gridview-in-objectdatasource/comment-page-1/#comment-26211</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 19 Feb 2010 04:31:37 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/08/05/assign-dropdownlist-in-aspdotnet-to-gridview-in-objectdatasource/#comment-26211</guid>
		<description>Excelent! A lot of time saving.
&quot;the simplest solution is allways the best solution&quot;</description>
		<content:encoded><![CDATA[<p>Excelent! A lot of time saving.<br />
&#8220;the simplest solution is allways the best solution&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://peterkellner.net/2008/08/05/assign-dropdownlist-in-aspdotnet-to-gridview-in-objectdatasource/comment-page-1/#comment-26053</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 19 Jan 2010 11:03:11 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/08/05/assign-dropdownlist-in-aspdotnet-to-gridview-in-objectdatasource/#comment-26053</guid>
		<description>This is indeed very helpful - thanks.  I am more ambitious.  I want to have a footer row for inputting additional records into the database - fairly well documented.  But I want the cell in the footer row to have a DropDownList populated by the existing records in the column - again fairly well documented.  This forces them to use existing categories rather than invent a new one.

Where I am getting stuck is that I want the selected value in the DropDownList to be the same as in the first row of the Gridview, to give the user a default that they may wish to copy or to change.  I can pick up the value of the top left cell with:
CType(GridView1.Rows(0).Cells(0).FindControl(&quot;Label1&quot;), Label).Text

Can you suggest what code I put where to get the DropDownList18.SelectedValue to be set to the above.

Many thanks,  Tom</description>
		<content:encoded><![CDATA[<p>This is indeed very helpful &#8211; thanks.  I am more ambitious.  I want to have a footer row for inputting additional records into the database &#8211; fairly well documented.  But I want the cell in the footer row to have a DropDownList populated by the existing records in the column &#8211; again fairly well documented.  This forces them to use existing categories rather than invent a new one.</p>
<p>Where I am getting stuck is that I want the selected value in the DropDownList to be the same as in the first row of the Gridview, to give the user a default that they may wish to copy or to change.  I can pick up the value of the top left cell with:<br />
CType(GridView1.Rows(0).Cells(0).FindControl(&#8220;Label1&#8243;), Label).Text</p>
<p>Can you suggest what code I put where to get the DropDownList18.SelectedValue to be set to the above.</p>
<p>Many thanks,  Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Kellner</title>
		<link>http://peterkellner.net/2008/08/05/assign-dropdownlist-in-aspdotnet-to-gridview-in-objectdatasource/comment-page-1/#comment-723</link>
		<dc:creator>Peter Kellner</dc:creator>
		<pubDate>Wed, 06 Aug 2008 20:43:44 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/08/05/assign-dropdownlist-in-aspdotnet-to-gridview-in-objectdatasource/#comment-723</guid>
		<description>Greg,
You are correct.  The fields DataTextField=&quot;Username&quot; and DataValueField=&quot;id&quot; are not necessary. They came along by accident with a cut and paste.  Thanks for pointing this out.
-Peter</description>
		<content:encoded><![CDATA[<p>Greg,<br />
You are correct.  The fields DataTextField=&#8221;Username&#8221; and DataValueField=&#8221;id&#8221; are not necessary. They came along by accident with a cut and paste.  Thanks for pointing this out.<br />
-Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://peterkellner.net/2008/08/05/assign-dropdownlist-in-aspdotnet-to-gridview-in-objectdatasource/comment-page-1/#comment-722</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Wed, 06 Aug 2008 18:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2008/08/05/assign-dropdownlist-in-aspdotnet-to-gridview-in-objectdatasource/#comment-722</guid>
		<description>This is very helpful...thanks!  My only thought is that I don&#039;t think the DataTextField is needed, or if it is needed then it is not intuitive in the example to have a username field mentioned when it will be a boolean yes/no. Took me a second to figure out what you were trying to do with the dropdownlist.

I&#039;d love to see the second installment on editing that boolean!</description>
		<content:encoded><![CDATA[<p>This is very helpful&#8230;thanks!  My only thought is that I don&#8217;t think the DataTextField is needed, or if it is needed then it is not intuitive in the example to have a username field mentioned when it will be a boolean yes/no. Took me a second to figure out what you were trying to do with the dropdownlist.</p>
<p>I&#8217;d love to see the second installment on editing that boolean!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 2/25 queries in 0.022 seconds using disk
Content Delivery Network via cdn.peterkellner.net

Served from: peterkellner.net @ 2010-09-03 14:42:47 -->