﻿<?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 - Storing the sorted order of records in an object</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Storing-the-sorted-order-of-records-in-an-object/</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>Storing the sorted order of records in an object</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Storing-the-sorted-order-of-records-in-an-object/</link><pubDate>Mon, 17 Sep 2012 20:43:16 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125); "&gt;Sorry for the delay in sending this.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(31, 73, 125); "&gt;I’m currently still investigating this issue and need more time to provide you with solution, suggestion, or sample.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125); "&gt;I’ll get back to you as soon as possible.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125); "&gt;&lt;strong&gt;Edited on October 18, 2012 8:10 PM&lt;br /&gt;Reason: Update information&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125); "&gt;Sorry for the delay in sending this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125); "&gt;WebGrid doesn’t keep the state of sorted order of records but there is informations which tells whether the grid is sorted or filtered; which sorted order is used (ascending or descending); or which filter type that is applied; etc.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125); "&gt;Could you please let us know the goal of your scenario? Would you like to have WebGrid to keep the table structure and layout based on the last state on user?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Storing the sorted order of records in an object</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Storing-the-sorted-order-of-records-in-an-object/</link><pubDate>Mon, 17 Sep 2012 00:34:20 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Any updates on this please?&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;/br&gt;Regards,&lt;br&gt;&lt;/br&gt;Madhavan&lt;/p&gt;</description></item><item><title>Storing the sorted order of records in an object</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Storing-the-sorted-order-of-records-in-an-object/</link><pubDate>Fri, 14 Sep 2012 07:11:40 GMT</pubDate><dc:creator>Skgrid@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi ALL,&lt;/p&gt;
&lt;p&gt;We have a webgrid with classic paging enabled.Say we have columns Name,Type,DataProvider.Say the grid is having 20 rows with Pagingsize is 10.There will be two pages.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Now i have done the sorting Based on the Name.Now we want to store the Sorted order of records in an external object.&lt;/p&gt;
&lt;p&gt;I want to loop through the webgridrows.&lt;/p&gt;&lt;span style="color: rgb(0, 128, 0); font-family: consolas; font-size: 13px;"&gt;&lt;span style="color: rgb(0, 128, 0); font-family: consolas; font-size: 13px;"&gt;&lt;span style="color: rgb(0, 128, 0); font-family: consolas; font-size: 13px;"&gt;&lt;p&gt;foreach (ISNet.WebUI.WebGrid.WebGridRow wgRow in webgridUsers.RootTable.Rows)&lt;br&gt;&lt;/br&gt;{&lt;/p&gt;&lt;p&gt;string name=wgRow.Cells[0].Text; &lt;/p&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;&lt;p&gt;  List&amp;lt;UserSelectedTags&amp;gt; tagRequests = new List&amp;lt;UserSelectedTags&amp;gt;();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&lt;/br&gt;tagRequests.Add(new UserSelectedTags {name,type,dataprov });&lt;/p&gt;&lt;/span&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;We are getting the rows count for the first page loaded rows.We need to loop through all the rows.How we will achieve this?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;Regards,&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Madhavan&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;&lt;p&gt;            &lt;/p&gt;&lt;/span&gt;
&lt;/span&gt;&lt;p&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;&lt;span style="font-family: consolas; font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>