<?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: Row number in GridView &#8212; the best way !!!</title>
	<atom:link href="http://cubicthoughts.com/2008/05/30/row-number-in-gridview-the-best-way/feed/" rel="self" type="application/rss+xml" />
	<link>http://cubicthoughts.com/2008/05/30/row-number-in-gridview-the-best-way/</link>
	<description>just about anything...</description>
	<lastBuildDate>Sat, 18 Jun 2011 07:14:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Deepak Vasa</title>
		<link>http://cubicthoughts.com/2008/05/30/row-number-in-gridview-the-best-way/comment-page-1/#comment-131</link>
		<dc:creator>Deepak Vasa</dc:creator>
		<pubDate>Mon, 27 Oct 2008 22:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.cubicthoughts.com/?p=47#comment-131</guid>
		<description>To add the row number for a GridView with custom paging esp. when using SQL Server 2000:

&lt;asp :TemplateField HeaderText=&quot;No&quot;&gt;
                    &lt;itemtemplate&gt;
                    &lt; %# (((GridView)((GridViewRow)Container).Parent.Parent).PageIndex) * ((GridView)((GridViewRow)Container).Parent.Parent).PageSize + 
                        Container.DataItemIndex + 1 %&gt;
                    &lt;/itemtemplate&gt;
                &lt;/asp&gt;</description>
		<content:encoded><![CDATA[<p>To add the row number for a GridView with custom paging esp. when using SQL Server 2000:</p>
<p><asp :TemplateField HeaderText="No"><br />
                    <itemtemplate><br />
                    < %# (((GridView)((GridViewRow)Container).Parent.Parent).PageIndex) * ((GridView)((GridViewRow)Container).Parent.Parent).PageSize +<br />
                        Container.DataItemIndex + 1 %><br />
                    </itemtemplate><br />
                </asp></p>
]]></content:encoded>
	</item>
</channel>
</rss>

