<?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/"
	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>Comments on: ASP.NET: GridView Update/Edit/Cancel, HyperLinkFields, and DataKey Retrieval</title>
	<atom:link href="http://dotnetdiscussion.net/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/feed/" rel="self" type="application/rss+xml" />
	<link>http://dotnetdiscussion.net/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/</link>
	<description>.NET Issues, Problems, Code Samples, and Fixes</description>
	<lastBuildDate>Thu, 04 Mar 2010 07:52:27 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: chhaya</title>
		<link>http://dotnetdiscussion.net/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4567</link>
		<dc:creator>chhaya</dc:creator>
		<pubDate>Thu, 04 Mar 2010 07:52:27 +0000</pubDate>
		<guid isPermaLink="false">http://dotnetdiscussion.wordpress.com/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4567</guid>
		<description>hi i am chhaya thanks u</description>
		<content:encoded><![CDATA[<p>hi i am chhaya thanks u</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shashi</title>
		<link>http://dotnetdiscussion.net/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4561</link>
		<dc:creator>Shashi</dc:creator>
		<pubDate>Wed, 17 Feb 2010 06:02:51 +0000</pubDate>
		<guid isPermaLink="false">http://dotnetdiscussion.wordpress.com/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4561</guid>
		<description>thanks for the great work.but i couldn&#039;t get the value textbox. the textbox.text value get epty.i need to get new vale that i changed in cell. bellow have the code sample
thank you





Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand

If e.CommandName.Equals(&quot;Update&quot;) Then


Dim subtotal As TextBox
subtotal = CType(GridView1.Rows(index).Cells(6).Controls(0), TextBox)</description>
		<content:encoded><![CDATA[<p>thanks for the great work.but i couldn&#8217;t get the value textbox. the textbox.text value get epty.i need to get new vale that i changed in cell. bellow have the code sample<br />
thank you</p>
<p>Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand</p>
<p>If e.CommandName.Equals(&#8220;Update&#8221;) Then</p>
<p>Dim subtotal As TextBox<br />
subtotal = CType(GridView1.Rows(index).Cells(6).Controls(0), TextBox)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://dotnetdiscussion.net/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4551</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 27 Jan 2010 20:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://dotnetdiscussion.wordpress.com/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4551</guid>
		<description>You rock, dude! After hours of searching, this article gave me the solution to the double click issue I was having.

Thanks.</description>
		<content:encoded><![CDATA[<p>You rock, dude! After hours of searching, this article gave me the solution to the double click issue I was having.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Some.Net(Guy)</title>
		<link>http://dotnetdiscussion.net/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4534</link>
		<dc:creator>Some.Net(Guy)</dc:creator>
		<pubDate>Mon, 28 Dec 2009 09:23:19 +0000</pubDate>
		<guid isPermaLink="false">http://dotnetdiscussion.wordpress.com/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4534</guid>
		<description>Grant - 

Glad I could help!</description>
		<content:encoded><![CDATA[<p>Grant &#8211; </p>
<p>Glad I could help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: grant</title>
		<link>http://dotnetdiscussion.net/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4533</link>
		<dc:creator>grant</dc:creator>
		<pubDate>Mon, 28 Dec 2009 09:14:22 +0000</pubDate>
		<guid isPermaLink="false">http://dotnetdiscussion.wordpress.com/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4533</guid>
		<description>this post was super helpful.  It kept me from spending too much time on the wrong path.  Important to remember that when the appearance of the control changes, you have to do something different in how you access it in the controls collection for a cell.</description>
		<content:encoded><![CDATA[<p>this post was super helpful.  It kept me from spending too much time on the wrong path.  Important to remember that when the appearance of the control changes, you have to do something different in how you access it in the controls collection for a cell.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: henrico</title>
		<link>http://dotnetdiscussion.net/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4265</link>
		<dc:creator>henrico</dc:creator>
		<pubDate>Thu, 27 Aug 2009 17:53:08 +0000</pubDate>
		<guid isPermaLink="false">http://dotnetdiscussion.wordpress.com/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4265</guid>
		<description>Thanks for your quick reply!
I am using &quot;AutoGenerateColumns=True&quot;. The tricky part is how to do the Update since the database table design is vertical... Which now made me realize the impossible task to do a normal Update in GridView. Hmm, maybe a stored procedure will do the job, constructing the update command on-the-fly. I&#039;ll try that! Thanks for your time.</description>
		<content:encoded><![CDATA[<p>Thanks for your quick reply!<br />
I am using &#8220;AutoGenerateColumns=True&#8221;. The tricky part is how to do the Update since the database table design is vertical&#8230; Which now made me realize the impossible task to do a normal Update in GridView. Hmm, maybe a stored procedure will do the job, constructing the update command on-the-fly. I&#8217;ll try that! Thanks for your time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Some.Net(Guy)</title>
		<link>http://dotnetdiscussion.net/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4264</link>
		<dc:creator>Some.Net(Guy)</dc:creator>
		<pubDate>Thu, 27 Aug 2009 17:21:03 +0000</pubDate>
		<guid isPermaLink="false">http://dotnetdiscussion.wordpress.com/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4264</guid>
		<description>Henrico - 

You&#039;re sort of right. It is not dynamic in the respect that the columns are hard-coded, yes, but it is dynamic in the respect that it&#039;s not hard-bound to a datasource. If you need a TRULY dynamic GV, you can either turn on &quot;autogeneratecolumns=true&quot; or you can add columns at run-time. Something like &quot;Gridview1.Columns.Add([your DataControlField object])&quot; for each column in whatever datatable you have (do a &quot;DataTable.Columns.Count&quot; and then add as many rows as there are columns in your underlying datatable).

Anyways, hope this helps, and thanks for your comment!
-Jason</description>
		<content:encoded><![CDATA[<p>Henrico &#8211; </p>
<p>You&#8217;re sort of right. It is not dynamic in the respect that the columns are hard-coded, yes, but it is dynamic in the respect that it&#8217;s not hard-bound to a datasource. If you need a TRULY dynamic GV, you can either turn on &#8220;autogeneratecolumns=true&#8221; or you can add columns at run-time. Something like &#8220;Gridview1.Columns.Add([your DataControlField object])&#8221; for each column in whatever datatable you have (do a &#8220;DataTable.Columns.Count&#8221; and then add as many rows as there are columns in your underlying datatable).</p>
<p>Anyways, hope this helps, and thanks for your comment!<br />
-Jason</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: henrico</title>
		<link>http://dotnetdiscussion.net/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4263</link>
		<dc:creator>henrico</dc:creator>
		<pubDate>Thu, 27 Aug 2009 14:32:50 +0000</pubDate>
		<guid isPermaLink="false">http://dotnetdiscussion.wordpress.com/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4263</guid>
		<description>I don&#039;t find this example so dynamic...
You are creating a GridView with three, hard coded, bound columns. Or, am I missing something?

In my code I need to populate the GridView by autogenerating the columns. The update should then handle the situation whether there are 2 or 100 columns. Is this possible?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t find this example so dynamic&#8230;<br />
You are creating a GridView with three, hard coded, bound columns. Or, am I missing something?</p>
<p>In my code I need to populate the GridView by autogenerating the columns. The update should then handle the situation whether there are 2 or 100 columns. Is this possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eamonn</title>
		<link>http://dotnetdiscussion.net/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4066</link>
		<dc:creator>Eamonn</dc:creator>
		<pubDate>Thu, 04 Jun 2009 09:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://dotnetdiscussion.wordpress.com/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4066</guid>
		<description>Just what I was looking for - Thanks.</description>
		<content:encoded><![CDATA[<p>Just what I was looking for &#8211; Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murali</title>
		<link>http://dotnetdiscussion.net/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4007</link>
		<dc:creator>Murali</dc:creator>
		<pubDate>Tue, 21 Apr 2009 06:22:41 +0000</pubDate>
		<guid isPermaLink="false">http://dotnetdiscussion.wordpress.com/2007/09/26/aspnet-gridview-updateeditcancel-hyperlinkfields-and-datakey-retrieval/#comment-4007</guid>
		<description>Test it is very usefull</description>
		<content:encoded><![CDATA[<p>Test it is very usefull</p>
]]></content:encoded>
	</item>
</channel>
</rss>
