<?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: How to Disable Edit/Insert/New Buttons in DetailsView or GridView (ASP.NET 2.0+)</title>
	<atom:link href="http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/feed/" rel="self" type="application/rss+xml" />
	<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/</link>
	<description>Microsoft Focussed, JavaScript (ExtJS, SenchaTouch &#38; Windows 8 Metro)</description>
	<lastBuildDate>Fri, 10 Feb 2012 17:32:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter Kellner</title>
		<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/comment-page-1/#comment-28043</link>
		<dc:creator>Peter Kellner</dc:creator>
		<pubDate>Thu, 09 Sep 2010 16:46:12 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/#comment-28043</guid>
		<description>Dave,
I&#039;ve been messing around with how to disable the update until the validation passes on a textbox with no luck.  I think this would best be handled with JavaScript.
-Peter</description>
		<content:encoded><![CDATA[<p>Dave,<br />
I&#8217;ve been messing around with how to disable the update until the validation passes on a textbox with no luck.  I think this would best be handled with JavaScript.<br />
-Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/comment-page-1/#comment-28041</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 09 Sep 2010 14:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/#comment-28041</guid>
		<description>Sorry - that should have said &quot;the &#039;Insert&#039; button when in Insert mode, and the &#039;Update&#039; button when in Edit mode?

Either way, the intent is the same - don&#039;t let the user even try to issue the Insert or Update until the data is valid.

Currently I trap the Inserting and Updating events, revalidate and cancel as required, but I&#039;d like to be neater.</description>
		<content:encoded><![CDATA[<p>Sorry &#8211; that should have said &#8220;the &#8216;Insert&#8217; button when in Insert mode, and the &#8216;Update&#8217; button when in Edit mode?</p>
<p>Either way, the intent is the same &#8211; don&#8217;t let the user even try to issue the Insert or Update until the data is valid.</p>
<p>Currently I trap the Inserting and Updating events, revalidate and cancel as required, but I&#8217;d like to be neater.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/comment-page-1/#comment-28040</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 09 Sep 2010 14:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/#comment-28040</guid>
		<description>A quick question...

Can this technique be applied in any way to selectively enable and disable the &quot;Update&quot; button when a DetailsView is in insert mode?

I&#039;d like to be able to disable Update based on the results of a validation method that checks some of the data...

D.</description>
		<content:encoded><![CDATA[<p>A quick question&#8230;</p>
<p>Can this technique be applied in any way to selectively enable and disable the &#8220;Update&#8221; button when a DetailsView is in insert mode?</p>
<p>I&#8217;d like to be able to disable Update based on the results of a validation method that checks some of the data&#8230;</p>
<p>D.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Kellner</title>
		<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/comment-page-1/#comment-28039</link>
		<dc:creator>Peter Kellner</dc:creator>
		<pubDate>Thu, 09 Sep 2010 14:01:36 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/#comment-28039</guid>
		<description>verbrauchsplan, you don&#039;t set the click event, the event gets fired through the rowcommand as you would expect. (because it&#039;s a linkbutton)</description>
		<content:encoded><![CDATA[<p>verbrauchsplan, you don&#8217;t set the click event, the event gets fired through the rowcommand as you would expect. (because it&#8217;s a linkbutton)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/comment-page-1/#comment-28038</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 09 Sep 2010 13:58:38 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/#comment-28038</guid>
		<description>Brilliant.  

One of those things where if you are trying to do it from a &quot;windows forms mindset&quot; gets very messy,  but which need not be with the right mental toolset.

Thank you.</description>
		<content:encoded><![CDATA[<p>Brilliant.  </p>
<p>One of those things where if you are trying to do it from a &#8220;windows forms mindset&#8221; gets very messy,  but which need not be with the right mental toolset.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NICE!</title>
		<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/comment-page-1/#comment-27924</link>
		<dc:creator>NICE!</dc:creator>
		<pubDate>Sat, 28 Aug 2010 14:09:06 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/#comment-27924</guid>
		<description>Easy. Simple. You are the man! Looked for hours and this is the best solution I could find.</description>
		<content:encoded><![CDATA[<p>Easy. Simple. You are the man! Looked for hours and this is the best solution I could find.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: himanshu</title>
		<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/comment-page-1/#comment-27889</link>
		<dc:creator>himanshu</dc:creator>
		<pubDate>Mon, 09 Aug 2010 21:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/#comment-27889</guid>
		<description>sir i just want to ask that
when i click edit button my delete button will get disable...</description>
		<content:encoded><![CDATA[<p>sir i just want to ask that<br />
when i click edit button my delete button will get disable&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Kellner</title>
		<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/comment-page-1/#comment-26057</link>
		<dc:creator>Peter Kellner</dc:creator>
		<pubDate>Tue, 19 Jan 2010 20:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/#comment-26057</guid>
		<description>verbrauchsplan,

you can set the click event with onclick=.. or onclientclick=..</description>
		<content:encoded><![CDATA[<p>verbrauchsplan,</p>
<p>you can set the click event with onclick=.. or onclientclick=..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: verbrauchsplan</title>
		<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/comment-page-1/#comment-26056</link>
		<dc:creator>verbrauchsplan</dc:creator>
		<pubDate>Tue, 19 Jan 2010 20:38:57 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/#comment-26056</guid>
		<description>But how do i set the click event ?</description>
		<content:encoded><![CDATA[<p>But how do i set the click event ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikos</title>
		<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/comment-page-1/#comment-25840</link>
		<dc:creator>Nikos</dc:creator>
		<pubDate>Sat, 05 Dec 2009 15:22:25 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/#comment-25840</guid>
		<description>Phil!=Peter;
It should be THANK YOU PETER
Forgive me..</description>
		<content:encoded><![CDATA[<p>Phil!=Peter;<br />
It should be THANK YOU PETER<br />
Forgive me..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nikos</title>
		<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/comment-page-1/#comment-25838</link>
		<dc:creator>Nikos</dc:creator>
		<pubDate>Sat, 05 Dec 2009 14:44:09 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/#comment-25838</guid>
		<description>Thanks very much!
I was told to enhance the form so that submitting was possible even when Javascript was desabled,
THIS POST HELPED A LOT!! 
just use the standard button ..beautiful..  

THANK YOU Phil!</description>
		<content:encoded><![CDATA[<p>Thanks very much!<br />
I was told to enhance the form so that submitting was possible even when Javascript was desabled,<br />
THIS POST HELPED A LOT!!<br />
just use the standard button ..beautiful..  </p>
<p>THANK YOU Phil!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/comment-page-1/#comment-25819</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 04 Dec 2009 14:43:36 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/#comment-25819</guid>
		<description>Thanks Phil,

Mike&#039;s also got a pretty good way to do it as mentioned above that may be even simpler.

-Peter</description>
		<content:encoded><![CDATA[<p>Thanks Phil,</p>
<p>Mike&#8217;s also got a pretty good way to do it as mentioned above that may be even simpler.</p>
<p>-Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Reid</title>
		<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/comment-page-1/#comment-25818</link>
		<dc:creator>Phil Reid</dc:creator>
		<pubDate>Fri, 04 Dec 2009 14:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/#comment-25818</guid>
		<description>Peter,

  This a great, simple solution - Thankyou!

  It took me half a day of trawling through a number of more complicated solutions before I hit the jackpot with your post.

Works like a dream!  I&#039;ll be bookmarking your site so I can start here in future.

Kind Regards

Phil</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>  This a great, simple solution &#8211; Thankyou!</p>
<p>  It took me half a day of trawling through a number of more complicated solutions before I hit the jackpot with your post.</p>
<p>Works like a dream!  I&#8217;ll be bookmarking your site so I can start here in future.</p>
<p>Kind Regards</p>
<p>Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/comment-page-1/#comment-25650</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 17 Nov 2009 15:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/2009/09/06/detailsview-gridview-aspnet-disable-new-edit-delete-buttons/#comment-25650</guid>
		<description>Another approach...

Have in your aspx for the &lt;asp:DetailsView... 

AutoGenerateEditButton=&quot;True&quot;

Then in your codebehind, if you want rid of the button at any stage, chuck in a...

dvwCheeses.AutoGenerateEditButton = false;</description>
		<content:encoded><![CDATA[<p>Another approach&#8230;</p>
<p>Have in your aspx for the &lt;asp:DetailsView&#8230; </p>
<p>AutoGenerateEditButton=&quot;True&quot;</p>
<p>Then in your codebehind, if you want rid of the button at any stage, chuck in a&#8230;</p>
<p>dvwCheeses.AutoGenerateEditButton = false;</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)
Database Caching 15/49 queries in 0.194 seconds using disk

Served from: peterkellner.net @ 2012-02-10 19:02:12 -->
