<?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: Have GridView Highlight Last Inserted Record in ASP.NET 2.0</title>
	<atom:link href="http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/feed/" rel="self" type="application/rss+xml" />
	<link>http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/</link>
	<description>Specializing in Microsoft Web and Database and Sync Technologies</description>
	<lastBuildDate>Tue, 07 Sep 2010 12:49:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: paul makram</title>
		<link>http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/comment-page-1/#comment-20068</link>
		<dc:creator>paul makram</dc:creator>
		<pubDate>Thu, 12 Mar 2009 12:56:10 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/#comment-20068</guid>
		<description>How can i thank you ,This article have a nice ideas ,But how i can select a record from a GridView and insert that Row to anoter table ,Tanks in advance</description>
		<content:encoded><![CDATA[<p>How can i thank you ,This article have a nice ideas ,But how i can select a record from a GridView and insert that Row to anoter table ,Tanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/comment-page-1/#comment-16110</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Tue, 06 Jan 2009 03:39:22 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/#comment-16110</guid>
		<description>To: David and EnalraSanlac

Are you using SqlServer? NewId is a sqlserver thing and does not apply to other databases.</description>
		<content:encoded><![CDATA[<p>To: David and EnalraSanlac</p>
<p>Are you using SqlServer? NewId is a sqlserver thing and does not apply to other databases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/comment-page-1/#comment-16090</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 06 Jan 2009 02:07:03 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/#comment-16090</guid>
		<description>Just the EnelraSanlac above, I&#039;m getting the same error message. Any ideas?</description>
		<content:encoded><![CDATA[<p>Just the EnelraSanlac above, I&#8217;m getting the same error message. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno</title>
		<link>http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/comment-page-1/#comment-2858</link>
		<dc:creator>Bruno</dc:creator>
		<pubDate>Wed, 10 Sep 2008 14:10:14 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/#comment-2858</guid>
		<description>Great technique! Many thanks for sharing it with us.</description>
		<content:encoded><![CDATA[<p>Great technique! Many thanks for sharing it with us.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dessy Petrova</title>
		<link>http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/comment-page-1/#comment-570</link>
		<dc:creator>Dessy Petrova</dc:creator>
		<pubDate>Thu, 31 Jul 2008 13:06:46 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/#comment-570</guid>
		<description>I have a paged GridView. Every time when I insert new record, I set the selected row in the GridView to the inserted record. How can I done this? Here is sample code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If (gvClients.Rows.Count  0) Then
            gvClients.PageIndex = gvClients.PageCount - 1
        End If
    End Sub
Protected Sub gvClients_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles gvClients.DataBound
        gvClients.SelectedIndex = gvClients.Rows.Count - 1
    End Sub
Here gvClients is GridView, which I&#039;ve used.</description>
		<content:encoded><![CDATA[<p>I have a paged GridView. Every time when I insert new record, I set the selected row in the GridView to the inserted record. How can I done this? Here is sample code:<br />
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load<br />
        If (gvClients.Rows.Count  0) Then<br />
            gvClients.PageIndex = gvClients.PageCount &#8211; 1<br />
        End If<br />
    End Sub<br />
Protected Sub gvClients_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles gvClients.DataBound<br />
        gvClients.SelectedIndex = gvClients.Rows.Count &#8211; 1<br />
    End Sub<br />
Here gvClients is GridView, which I&#8217;ve used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allan Boyd</title>
		<link>http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/comment-page-1/#comment-569</link>
		<dc:creator>Allan Boyd</dc:creator>
		<pubDate>Tue, 25 Mar 2008 21:19:42 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/#comment-569</guid>
		<description>HOW CAN WE DO THE SAME WITH ACCESS DATABASE?

I AM USING THE DEFAULT FormView to insert data. In my next page I would need to know the id of the row inserted.

I have set the id field to be a auto number.

Thanks you</description>
		<content:encoded><![CDATA[<p>HOW CAN WE DO THE SAME WITH ACCESS DATABASE?</p>
<p>I AM USING THE DEFAULT FormView to insert data. In my next page I would need to know the id of the row inserted.</p>
<p>I have set the id field to be a auto number.</p>
<p>Thanks you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/comment-page-1/#comment-568</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 19 Jan 2008 04:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/#comment-568</guid>
		<description>Thank you soooo much.  I am using VB, but was able to get this to work to redirect users to the a page with the &quot;new&quot; entry id.</description>
		<content:encoded><![CDATA[<p>Thank you soooo much.  I am using VB, but was able to get this to work to redirect users to the a page with the &#8220;new&#8221; entry id.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EnelraSanlac</title>
		<link>http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/comment-page-1/#comment-566</link>
		<dc:creator>EnelraSanlac</dc:creator>
		<pubDate>Fri, 13 Jul 2007 06:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/#comment-566</guid>
		<description>Please help me asap...
I have this problem.

An OdbcParameter with parametername &#039;@NewID&#039; is not contained by this OdbcparameterCollection.

I just follow instruction and copy paste your program but it doesn&#039;t work like what i&#039;ve expected.

Please help.
Thank you</description>
		<content:encoded><![CDATA[<p>Please help me asap&#8230;<br />
I have this problem.</p>
<p>An OdbcParameter with parametername &#8216;@NewID&#8217; is not contained by this OdbcparameterCollection.</p>
<p>I just follow instruction and copy paste your program but it doesn&#8217;t work like what i&#8217;ve expected.</p>
<p>Please help.<br />
Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ranu</title>
		<link>http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/comment-page-1/#comment-567</link>
		<dc:creator>Ranu</dc:creator>
		<pubDate>Mon, 18 Jun 2007 10:50:31 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/#comment-567</guid>
		<description>Thanks to you and GridView (it has saved my time)</description>
		<content:encoded><![CDATA[<p>Thanks to you and GridView (it has saved my time)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tomas</title>
		<link>http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/comment-page-1/#comment-565</link>
		<dc:creator>Tomas</dc:creator>
		<pubDate>Wed, 09 May 2007 12:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/#comment-565</guid>
		<description>Thanks for the article, but I use paging on the GridView and the foreach process only rows displayed on the current page. If the latest row is on another page, I need to switch to that page. Is there some possibility to do that? Thank you</description>
		<content:encoded><![CDATA[<p>Thanks for the article, but I use paging on the GridView and the foreach process only rows displayed on the current page. If the latest row is on another page, I need to switch to that page. Is there some possibility to do that? Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nerd.</title>
		<link>http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/comment-page-1/#comment-564</link>
		<dc:creator>nerd.</dc:creator>
		<pubDate>Mon, 30 Apr 2007 19:07:33 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/#comment-564</guid>
		<description>Just wanted to say thanks for posting the above, it&#039;s helped me no end with a current project.

I&#039;m using similar functionality to highlight &quot;deleted&quot; items (rows where a particular Boolean field is set to false). Works a treat.

Now all I have to do is figure out how to hide that field and still use its value. :(</description>
		<content:encoded><![CDATA[<p>Just wanted to say thanks for posting the above, it&#8217;s helped me no end with a current project.</p>
<p>I&#8217;m using similar functionality to highlight &#8220;deleted&#8221; items (rows where a particular Boolean field is set to false). Works a treat.</p>
<p>Now all I have to do is figure out how to hide that field and still use its value. <img src='http://cdn.peterkellner.net/wp/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian Young</title>
		<link>http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/comment-page-1/#comment-563</link>
		<dc:creator>Damian Young</dc:creator>
		<pubDate>Thu, 01 Feb 2007 23:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2006/12/07/gridviewhighlightlastinsertedrow/#comment-563</guid>
		<description>Hi,

Pretty cool. You could do this with Oracle as below.

InsertCommand=”INSERT INTO NAME ([NAME]) VALUES (:name) RETURNING COLUMN_ID INTO :new_id”

The above uses two Oracle Parameteres. Obviously the parameter :name is a inbound param, however the :new_id Param catches the new value of the specified column and returns it. Hence new_id should be declared with a direction of return value.

Thanks for the cool idea!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Pretty cool. You could do this with Oracle as below.</p>
<p>InsertCommand=”INSERT INTO NAME ([NAME]) VALUES (:name) RETURNING COLUMN_ID INTO :new_id”</p>
<p>The above uses two Oracle Parameteres. Obviously the parameter :name is a inbound param, however the :new_id Param catches the new value of the specified column and returns it. Hence new_id should be declared with a direction of return value.</p>
<p>Thanks for the cool idea!</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/44 queries in 0.041 seconds using disk
Content Delivery Network via cdn.peterkellner.net

Served from: peterkellner.net @ 2010-09-08 02:49:18 -->