<?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 for neal groothuis</title>
	<atom:link href="http://www.nealgroothuis.name/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nealgroothuis.name</link>
	<description>caffeinated and ready to dance</description>
	<lastBuildDate>Sat, 07 Feb 2009 14:28:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Comment on Falling back into old habits by ngroot</title>
		<link>http://www.nealgroothuis.name/2009/02/falling-back-into-old-habits/comment-page-1/#comment-9091</link>
		<dc:creator>ngroot</dc:creator>
		<pubDate>Sat, 07 Feb 2009 14:28:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.nealgroothuis.name/?p=129#comment-9091</guid>
		<description>I know!  I&#039;m going to one at Dance Manhattan very soon!</description>
		<content:encoded><![CDATA[<p>I know!  I&#8217;m going to one at Dance Manhattan very soon!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Falling back into old habits by emilydewan</title>
		<link>http://www.nealgroothuis.name/2009/02/falling-back-into-old-habits/comment-page-1/#comment-9090</link>
		<dc:creator>emilydewan</dc:creator>
		<pubDate>Sat, 07 Feb 2009 03:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.nealgroothuis.name/?p=129#comment-9090</guid>
		<description>I think there are support groups for this...</description>
		<content:encoded><![CDATA[<p>I think there are support groups for this&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Programmatically Selecting a A GridView Row in ASP.NET by ngroot</title>
		<link>http://www.nealgroothuis.name/2008/09/programmatically-selecting-a-a-gridview-row-in-aspnet/comment-page-1/#comment-9089</link>
		<dc:creator>ngroot</dc:creator>
		<pubDate>Tue, 18 Nov 2008 18:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.nealgroothuis.name/?p=77#comment-9089</guid>
		<description>Setting the SelectedIndex property of the GridView to -1 is supposed to turn the selection off, but that&#039;s not exactly what we&#039;re doing here.  We&#039;re simulating what would come back from the client if they click one of the &quot;Select&quot; controls for a row.  I don&#039;t believe there&#039;s an option to create an &quot;unselect&quot; control, so it&#039;s not surprising that it would only accept arguments that select a row.  

Are there at least two rows in your GridView?  The rows are zero-indexed, so selecting row 1 selects the /second/ row.

I just tried doing this both from the page class (i.e., using RaisePostBackEvent(MyGridView, &quot;Select$0&quot;)) and from a class derived from GridView (using RaisePostBackEvent(&quot;Select$0&quot;)).  Both worked fine.</description>
		<content:encoded><![CDATA[<p>Setting the SelectedIndex property of the GridView to -1 is supposed to turn the selection off, but that&#8217;s not exactly what we&#8217;re doing here.  We&#8217;re simulating what would come back from the client if they click one of the &#8220;Select&#8221; controls for a row.  I don&#8217;t believe there&#8217;s an option to create an &#8220;unselect&#8221; control, so it&#8217;s not surprising that it would only accept arguments that select a row.  </p>
<p>Are there at least two rows in your GridView?  The rows are zero-indexed, so selecting row 1 selects the /second/ row.</p>
<p>I just tried doing this both from the page class (i.e., using RaisePostBackEvent(MyGridView, &#8220;Select$0&#8243;)) and from a class derived from GridView (using RaisePostBackEvent(&#8220;Select$0&#8243;)).  Both worked fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Programmatically Selecting a A GridView Row in ASP.NET by kingpin123</title>
		<link>http://www.nealgroothuis.name/2008/09/programmatically-selecting-a-a-gridview-row-in-aspnet/comment-page-1/#comment-9088</link>
		<dc:creator>kingpin123</dc:creator>
		<pubDate>Tue, 18 Nov 2008 17:58:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.nealgroothuis.name/?p=77#comment-9088</guid>
		<description>Setting the index to -1 is supposed to turn the selection off, that is, set the grid so that no rows are selected.  Besides, I don&#039;t think that is my problem based on the error I am getting.  To verify I tried setting the second parameter to &quot;Select$1&quot; but I get the same error.

Thanks</description>
		<content:encoded><![CDATA[<p>Setting the index to -1 is supposed to turn the selection off, that is, set the grid so that no rows are selected.  Besides, I don&#8217;t think that is my problem based on the error I am getting.  To verify I tried setting the second parameter to &#8220;Select$1&#8243; but I get the same error.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Programmatically Selecting a A GridView Row in ASP.NET by ngroot</title>
		<link>http://www.nealgroothuis.name/2008/09/programmatically-selecting-a-a-gridview-row-in-aspnet/comment-page-1/#comment-9087</link>
		<dc:creator>ngroot</dc:creator>
		<pubDate>Tue, 18 Nov 2008 06:04:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.nealgroothuis.name/?p=77#comment-9087</guid>
		<description>I&#039;m not at work right now, so I can&#039;t verify this, but I doubt you can select the &quot;-1&quot;th row.  If you want to select the first row, for instance, you&#039;d want to do 

RaisePostBackEvent(MyGridView, &quot;Select$1&quot;)

If you&#039;re trying to select the last row, I would think that using &quot;-1&quot; as a shortcut is unlikely to work; you&#039;ll probably have to check how many rows are in the GridView and explicitly select the last one.  

Does that help?</description>
		<content:encoded><![CDATA[<p>I&#8217;m not at work right now, so I can&#8217;t verify this, but I doubt you can select the &#8220;-1&#8243;th row.  If you want to select the first row, for instance, you&#8217;d want to do </p>
<p>RaisePostBackEvent(MyGridView, &#8220;Select$1&#8243;)</p>
<p>If you&#8217;re trying to select the last row, I would think that using &#8220;-1&#8243; as a shortcut is unlikely to work; you&#8217;ll probably have to check how many rows are in the GridView and explicitly select the last one.  </p>
<p>Does that help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Programmatically Selecting a A GridView Row in ASP.NET by kingpin123</title>
		<link>http://www.nealgroothuis.name/2008/09/programmatically-selecting-a-a-gridview-row-in-aspnet/comment-page-1/#comment-9086</link>
		<dc:creator>kingpin123</dc:creator>
		<pubDate>Tue, 18 Nov 2008 01:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.nealgroothuis.name/?p=77#comment-9086</guid>
		<description>Can you please post a code example of this.  I tried it but I can&#039;t get it to work.

I tried 

this.Page.RaisePostBackEvent(MyGridView,&quot;Select$-1)&quot;;

But it throws this exception:

Invalid postback or callback argument.  Event validation is enabled using  in configuration or  in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.


I tried changing my @Page directive and my web.config but it had no effect.

How did you get this to work?

Thanks!</description>
		<content:encoded><![CDATA[<p>Can you please post a code example of this.  I tried it but I can&#8217;t get it to work.</p>
<p>I tried </p>
<p>this.Page.RaisePostBackEvent(MyGridView,&#8221;Select$-1)&#8221;;</p>
<p>But it throws this exception:</p>
<p>Invalid postback or callback argument.  Event validation is enabled using  in configuration or  in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.</p>
<p>I tried changing my @Page directive and my web.config but it had no effect.</p>
<p>How did you get this to work?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Pizza Lamentation Haiku by geltron</title>
		<link>http://www.nealgroothuis.name/2008/10/pizza-lamentation-haiku/comment-page-1/#comment-9085</link>
		<dc:creator>geltron</dc:creator>
		<pubDate>Fri, 10 Oct 2008 22:25:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.nealgroothuis.name/?p=97#comment-9085</guid>
		<description>http://www.tastesofchicago.com/</description>
		<content:encoded><![CDATA[<p><a href="http://www.tastesofchicago.com/" rel="nofollow">http://www.tastesofchicago.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Evil Empire by ngroot</title>
		<link>http://www.nealgroothuis.name/2008/09/the-evil-empire/comment-page-1/#comment-9084</link>
		<dc:creator>ngroot</dc:creator>
		<pubDate>Mon, 15 Sep 2008 12:53:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.nealgroothuis.name/?p=84#comment-9084</guid>
		<description>I can&#039;t wear T-shirts to work...I might have to go straight for the tattoo.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t wear T-shirts to work&#8230;I might have to go straight for the tattoo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Evil Empire by adsalyer</title>
		<link>http://www.nealgroothuis.name/2008/09/the-evil-empire/comment-page-1/#comment-9083</link>
		<dc:creator>adsalyer</dc:creator>
		<pubDate>Mon, 15 Sep 2008 10:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.nealgroothuis.name/?p=84#comment-9083</guid>
		<description>Oh no, you&#039;ve been forced to play on the dark side!  Wear protective gear- you might need some Mac t-shirts, etc.</description>
		<content:encoded><![CDATA[<p>Oh no, you&#8217;ve been forced to play on the dark side!  Wear protective gear- you might need some Mac t-shirts, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on I Am Full of Opinions Today by adsalyer</title>
		<link>http://www.nealgroothuis.name/2008/04/i-am-full-of-opinions-today/comment-page-1/#comment-9082</link>
		<dc:creator>adsalyer</dc:creator>
		<pubDate>Mon, 05 May 2008 16:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.nealgroothuis.name/?p=69#comment-9082</guid>
		<description>I&#039;ve often thought about joining Yelp, for this very reason.  There are a few places I&#039;d like to give fair warning about- good call!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve often thought about joining Yelp, for this very reason.  There are a few places I&#8217;d like to give fair warning about- good call!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
