<?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"
	>
<channel>
	<title>Comments on: Filtering &#038; sorting DataTables with DataTable.Select() in C#</title>
	<atom:link href="http://www.akamarketing.com/blog/161-filtering-sorting-datatable-datatableselect-method.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.akamarketing.com/blog/161-filtering-sorting-datatable-datatableselect-method.html</link>
	<description>Blogged thoughts, not just any other wordpress blog!</description>
	<pubDate>Tue, 07 Feb 2012 13:54:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: sarim</title>
		<link>http://www.akamarketing.com/blog/161-filtering-sorting-datatable-datatableselect-method.html#comment-107511</link>
		<dc:creator>sarim</dc:creator>
		<pubDate>Thu, 19 Aug 2010 03:17:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/?p=161#comment-107511</guid>
		<description>thank you for example of code in c#</description>
		<content:encoded><![CDATA[<p>thank you for example of code in c#</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charu Tayal</title>
		<link>http://www.akamarketing.com/blog/161-filtering-sorting-datatable-datatableselect-method.html#comment-107420</link>
		<dc:creator>Charu Tayal</dc:creator>
		<pubDate>Wed, 18 Aug 2010 04:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/?p=161#comment-107420</guid>
		<description>Wow this is a great article. Thanks for solving my problem.</description>
		<content:encoded><![CDATA[<p>Wow this is a great article. Thanks for solving my problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramz</title>
		<link>http://www.akamarketing.com/blog/161-filtering-sorting-datatable-datatableselect-method.html#comment-103379</link>
		<dc:creator>ramz</dc:creator>
		<pubDate>Thu, 03 Jun 2010 11:08:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/?p=161#comment-103379</guid>
		<description>i need help this one is not working why... i should have get records...but the message box tell me zero. 


   Dim d As New DataSet2
   
        Dim table As DataTable = d.Tables("ClientsPersonal")
         
        ' Presuming the DataTable has a column named Date.
        Dim expression As String
        expression = "id &#62; 1"
        Dim foundRows() As DataRow

        ' Use the Select method to find all rows matching the filter.
        foundRows = table.Select(expression)
        MsgBox(foundRows.Count)
        Dim i As Integer
        ' Print column 0 of each returned row.
        For i = 0 To foundRows.GetUpperBound(0)
            MsgBox(foundRows(i)(0))
        Next i</description>
		<content:encoded><![CDATA[<p>i need help this one is not working why&#8230; i should have get records&#8230;but the message box tell me zero. </p>
<p>   Dim d As New DataSet2</p>
<p>        Dim table As DataTable = d.Tables(&#8221;ClientsPersonal&#8221;)</p>
<p>        &#8216; Presuming the DataTable has a column named Date.<br />
        Dim expression As String<br />
        expression = &#8220;id &gt; 1&#8243;<br />
        Dim foundRows() As DataRow</p>
<p>        &#8216; Use the Select method to find all rows matching the filter.<br />
        foundRows = table.Select(expression)<br />
        MsgBox(foundRows.Count)<br />
        Dim i As Integer<br />
        &#8216; Print column 0 of each returned row.<br />
        For i = 0 To foundRows.GetUpperBound(0)<br />
            MsgBox(foundRows(i)(0))<br />
        Next i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Two's Compliment</title>
		<link>http://www.akamarketing.com/blog/161-filtering-sorting-datatable-datatableselect-method.html#comment-100941</link>
		<dc:creator>Two's Compliment</dc:creator>
		<pubDate>Wed, 28 Apr 2010 22:33:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/?p=161#comment-100941</guid>
		<description>The syntax for DataTable.Select()'s filter expression will give you trouble if you have a single-quote in it:
dt.Select("Name='Bob's Big Boy'") tells .NET that you are matching Name fields that have 'Bob', but then .NET does not know what to do with the remainder of the filter text which is: s Big Boy'
To get around this, you must double your literal single-quotes: dt.Select("Name='Bob''s Big Boy'")</description>
		<content:encoded><![CDATA[<p>The syntax for DataTable.Select()&#8217;s filter expression will give you trouble if you have a single-quote in it:<br />
dt.Select(&#8221;Name=&#8217;Bob&#8217;s Big Boy&#8217;&#8221;) tells .NET that you are matching Name fields that have &#8216;Bob&#8217;, but then .NET does not know what to do with the remainder of the filter text which is: s Big Boy&#8217;<br />
To get around this, you must double your literal single-quotes: dt.Select(&#8221;Name=&#8217;Bob&#8217;&#8217;s Big Boy&#8217;&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aze</title>
		<link>http://www.akamarketing.com/blog/161-filtering-sorting-datatable-datatableselect-method.html#comment-94165</link>
		<dc:creator>Aze</dc:creator>
		<pubDate>Tue, 19 Jan 2010 09:17:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/?p=161#comment-94165</guid>
		<description>Thanks man, really worked for me :)</description>
		<content:encoded><![CDATA[<p>Thanks man, really worked for me <img src='http://www.akamarketing.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>

