<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: e.Row.RowState</title>
	<link>http://www.techtoolblog.com/archives/erowrowstate</link>
	<description></description>
	<pubDate>Fri, 12 Mar 2010 13:25:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: inspiration falls</title>
		<link>http://www.techtoolblog.com/archives/erowrowstate#comment-86793</link>
		<dc:creator>inspiration falls</dc:creator>
		<pubDate>Thu, 28 Aug 2008 19:05:45 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/erowrowstate#comment-86793</guid>
		<description>Our dazzling collection of interior water walls will enthuse and impress anyone who sees it in your home or office.</description>
		<content:encoded><![CDATA[<p>Our dazzling collection of interior water walls will enthuse and impress anyone who sees it in your home or office.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.techtoolblog.com/archives/erowrowstate#comment-83277</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Wed, 09 Jul 2008 19:15:50 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/erowrowstate#comment-83277</guid>
		<description>I have something similare working like this:

If Not e.Row.RowState = 5 And Not e.Row.RowState = DataControlRowState.Edit Then


What is the &#124; in your statement for? I have not seen that used before.

Ryan</description>
		<content:encoded><![CDATA[<p>I have something similare working like this:</p>
<p>If Not e.Row.RowState = 5 And Not e.Row.RowState = DataControlRowState.Edit Then</p>
<p>What is the | in your statement for? I have not seen that used before.</p>
<p>Ryan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.techtoolblog.com/archives/erowrowstate#comment-83098</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 07 Jul 2008 16:26:01 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/erowrowstate#comment-83098</guid>
		<description>Correction to my comment:
&lt;code&gt;
If e.Row.RowState = DataControlRowState.Edit OR e.Row.RowState = (DataControlRowState.Alternate&#124;DataControlRowState.Edit) Then
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Correction to my comment:<br />
<code><br />
If e.Row.RowState = DataControlRowState.Edit OR e.Row.RowState = (DataControlRowState.Alternate|DataControlRowState.Edit) Then<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.techtoolblog.com/archives/erowrowstate#comment-83097</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 07 Jul 2008 16:25:10 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/erowrowstate#comment-83097</guid>
		<description>The rowstate can either be:

DataControlRowState.Edit or 
(DataControlRowState.Alternate &#124; DataControlRowState.Edit)

so your IF statement should display:
&lt;code&gt;
If e.Row.RowState = DataControlRowState.Edit OR (e.Row.RowState = DataControlRowState.Alternate&#124;DataControlRowState.Edit) Then
&lt;/code&gt;

The alternate tag is assigned to every odd index in the gridview.  The tag is used for asthetic purposes (you can assign a different background color for every other line)</description>
		<content:encoded><![CDATA[<p>The rowstate can either be:</p>
<p>DataControlRowState.Edit or<br />
(DataControlRowState.Alternate | DataControlRowState.Edit)</p>
<p>so your IF statement should display:<br />
<code><br />
If e.Row.RowState = DataControlRowState.Edit OR (e.Row.RowState = DataControlRowState.Alternate|DataControlRowState.Edit) Then<br />
</code></p>
<p>The alternate tag is assigned to every odd index in the gridview.  The tag is used for asthetic purposes (you can assign a different background color for every other line)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.techtoolblog.com/archives/erowrowstate#comment-77739</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Tue, 20 May 2008 18:40:06 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/erowrowstate#comment-77739</guid>
		<description>Looks like a bug in the GridView control.  ( e.Row.RowState == DataControlRowState.Edit ) is never true, even when I've clicked to edit the row.  Instead, I have to check if( e.Row.RowIndex == MyGridView.EditIndex )</description>
		<content:encoded><![CDATA[<p>Looks like a bug in the GridView control.  ( e.Row.RowState == DataControlRowState.Edit ) is never true, even when I&#8217;ve clicked to edit the row.  Instead, I have to check if( e.Row.RowIndex == MyGridView.EditIndex )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.techtoolblog.com/archives/erowrowstate#comment-27393</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 17 Jul 2007 13:21:43 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/erowrowstate#comment-27393</guid>
		<description>Yes, 
The above code is within an IF e.Row.RowType == DataControlRowType.DataRow block.</description>
		<content:encoded><![CDATA[<p>Yes,<br />
The above code is within an IF e.Row.RowType == DataControlRowType.DataRow block.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Davis</title>
		<link>http://www.techtoolblog.com/archives/erowrowstate#comment-27361</link>
		<dc:creator>Chris Davis</dc:creator>
		<pubDate>Tue, 17 Jul 2007 09:12:06 +0000</pubDate>
		<guid>http://www.techtoolblog.com/archives/erowrowstate#comment-27361</guid>
		<description>Hi, I think it's the IF, have you tried:

e.Row.RowType == DataControlRowType.DataRow</description>
		<content:encoded><![CDATA[<p>Hi, I think it&#8217;s the IF, have you tried:</p>
<p>e.Row.RowType == DataControlRowType.DataRow</p>
]]></content:encoded>
	</item>
</channel>
</rss>
