﻿<?xml version="1.0" encoding="utf-8"?><rss 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" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - How can we set TotalPages programmatically in WebGrid ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-we-set-TotalPages-programmatically-in-WebGrid-/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How can we set TotalPages programmatically in WebGrid ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-we-set-TotalPages-programmatically-in-WebGrid-/</link><pubDate>Mon, 27 Jul 2015 02:18:03 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid</category><category>TotalPage</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Glad to hear that the information helps.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How can we set TotalPages programmatically in WebGrid ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-we-set-TotalPages-programmatically-in-WebGrid-/</link><pubDate>Tue, 14 Jul 2015 07:47:36 GMT</pubDate><dc:creator>rockymain15</dc:creator><category>WebGrid</category><category>TotalPage</category><description>Thanks, &lt;br /&gt;It was great Help. </description></item><item><title>How can we set TotalPages programmatically in WebGrid ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-we-set-TotalPages-programmatically-in-WebGrid-/</link><pubDate>Tue, 14 Jul 2015 07:47:08 GMT</pubDate><dc:creator>rockymain15</dc:creator><category>WebGrid</category><category>TotalPage</category><description>&lt;p&gt;Thanks man, &lt;/p&gt;
&lt;p&gt;It was a great Help.&lt;/p&gt;</description></item><item><title>How can we set TotalPages programmatically in WebGrid ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-we-set-TotalPages-programmatically-in-WebGrid-/</link><pubDate>Tue, 14 Jul 2015 07:47:03 GMT</pubDate><dc:creator>rockymain15</dc:creator><category>WebGrid</category><category>TotalPage</category><description>&lt;p&gt;Thanks man, &lt;/p&gt;
&lt;p&gt;It was a great Help.&lt;/p&gt;</description></item><item><title>How can we set TotalPages programmatically in WebGrid ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-we-set-TotalPages-programmatically-in-WebGrid-/</link><pubDate>Tue, 14 Jul 2015 07:46:50 GMT</pubDate><dc:creator>rockymain15</dc:creator><category>WebGrid</category><category>TotalPage</category><description>&lt;p&gt;Thanks man, &lt;/p&gt;
&lt;p&gt;It was a great Help.&lt;/p&gt;</description></item><item><title>How can we set TotalPages programmatically in WebGrid ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-we-set-TotalPages-programmatically-in-WebGrid-/</link><pubDate>Wed, 08 Jul 2015 02:21:50 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid</category><category>TotalPage</category><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;&lt;em&gt;Classic Paging&lt;/em&gt; feature is best suitable for your scenario where "Page x of y" is used to control the active page.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;By default, the classic paging will use Automatic data retrieval mode. In automatic mode, WebGrid determines the total data source rows based on the given data source and display the current page appropriately.&lt;br&gt;The classic paging also allow you to perform custom data retrieval for paging.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;In general, custom paging implementation requires three important steps:&lt;/span&gt;&lt;/p&gt;&lt;ol style="color: #1f497d;"&gt;&lt;li&gt;Set EnablePaging of the data source control to True.&lt;/li&gt;&lt;li&gt;Provides a method for Select. This method requires three parameters: startRow, maximumRows, and sortExpression.&lt;/li&gt;&lt;li&gt;Provides a method for SelectCount.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;For more detail information about custom data retrieval of classic paging, please check the documentation in &lt;a href="http://www.intersoftpt.com/Support/WebGrid/Documentation/topic474.html" target="_blank"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;There is no way to set TotalPages Count in WebGrid programmatically. WebGrid automatically determines the total pages count based on the given data source. However, you can try to implement custom paging to provide custom logic for retrieving rows.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How can we set TotalPages programmatically in WebGrid ?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-can-we-set-TotalPages-programmatically-in-WebGrid-/</link><pubDate>Tue, 07 Jul 2015 12:50:52 GMT</pubDate><dc:creator>rockymain15</dc:creator><category>WebGrid</category><category>TotalPage</category><description>&lt;p&gt;I want to set TotalPages Count in webgrid programmatically. &lt;/p&gt;
&lt;p&gt;WebGrid&amp;nbsp;should show like this "Page 1 of &amp;lt;mynumber&amp;gt;".&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>