<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Paging and Sorting Report Data</title><link>http://www.asp.net</link><pubDate>Wed, 24 Oct 2012 22:43:44 GMT</pubDate><generator>umbraco</generator><description>Comments for Paging and Sorting Report Data</description><language>en</language><atom:link href="http://www.asp.net/rss/comments/33390" rel="self" type="application/rss+xml" /><item><title>Comment Posted by Markis</title><link>http://www.asp.net/web-forms/tutorials/data-access/paging-and-sorting/paging-and-sorting-report-data-cs</link><pubDate>Tue, 13 Jul 2010 13:59:04 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000009434</guid><description><![CDATA[ <p>Thanks Scott!</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/Markis.jpg?forceidenticon=false&amp;dt=635049129000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by asadazmat</title><link>http://www.asp.net/web-forms/tutorials/data-access/paging-and-sorting/paging-and-sorting-report-data-cs</link><pubDate>Wed, 16 Feb 2011 13:17:24 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012091</guid><description><![CDATA[ <p>Good start of Paging &amp; Sorting.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/asadazmat.jpg?forceidenticon=false&amp;dt=635049129000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mfortress</title><link>http://www.asp.net/web-forms/tutorials/data-access/paging-and-sorting/paging-and-sorting-report-data-cs</link><pubDate>Wed, 24 Oct 2012 22:43:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016673</guid><description><![CDATA[ <p>The pager row HTML generated by the ASP.net script contains a table nested inside a table data cell, nested inside the actual table row that represents the pager row, as shown below.</p><p></p><p>&lt;tr class=&quot;PagerRowStyle&quot;&gt;</p><p>    &lt;td colspan=&quot;5&quot;&gt;</p><p>        &lt;table&gt;</p><p>            &lt;tr&gt;</p><p>                &lt;td&gt;</p><p>                    &lt;a href=&quot;javascript:__doPostBack(&#39;ctl00$MainContent$Products&#39;,&#39;Page$1&#39;)&quot;&gt;</p><p>                        1</p><p>                    &lt;/a&gt;</p><p>                     &lt;a href=&quot;javascript:__doPostBack(&#39;ctl00$MainContent$Products&#39;,&#39;Page$1&#39;)&quot;&gt;</p><p>                        2</p><p>                    &lt;/a&gt;</p><p>                    &lt;a href=&quot;javascript:__doPostBack(&#39;ctl00$MainContent$Products&#39;,&#39;Page$1&#39;)&quot;&gt;</p><p>                        3</p><p>                    &lt;/a&gt;</p><p>                    ...</p><p>                    ...</p><p>                    ...</p><p>              &lt;/td&gt;</p><p>            &lt;/tr&gt;</p><p>        &lt;/table&gt;</p><p>    &lt;/td&gt;</p><p>&lt;/tr&gt;</p><p></p><p>When I set the PagerStyle in GridView.skin to use the PagerRowStyle CSS class, the style is applied to the outermost table row, not to the innermost table row of the nested table.</p><p></p><p>This is fine for the background color style (turning the whole row grey) because the background color can be applied to the outermost row (the actual pager row), even with the nested table in the row.  However, the text-align style doesn&#39;t work because there is no text in the outermost row to align to the right.  There is only a nested table in that row.</p><p></p><p>In order to &quot;make this work,&quot; I added a second style in Styles.css:</p><p></p><p>.PagerRowStyle table</p><p>{ </p><p>    float: right;</p><p>}</p><p></p><p>It&#39;s the same style name (PagerRowStyle), so the GridView theme will apply this style to the GridView, as well as applying the original PagerRowStyle, but this second style will float any content to the right in any table within the pager row.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/mfortress.jpg?forceidenticon=false&amp;dt=635049129000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>