﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / Visual Basic .NET / .NET Programming (VB 2010 or earlier)  / VB.Net 2008 Sort DataGridViewTextBoxColumn Numeric values / Latest Posts</title><generator>InstantForum.NET v4.1.1</generator><description>A1VBCode Forums</description><link>http://www.a1vbcode.com/vbforums/</link><webMaster>forums@a1vbcode.com</webMaster><lastBuildDate>Thu, 17 May 2012 02:15:48 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: VB.Net 2008 Sort DataGridViewTextBoxColumn Numeric values</title><link>http://www.a1vbcode.com/vbforums/Topic31179-9-1.aspx</link><description>&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;while adding data to column, somehow i converted that to string. once i removed that, it's working fine and start sorting.&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;&lt;/FONT&gt; </description><pubDate>Sun, 29 Jan 2012 08:08:11 GMT</pubDate><dc:creator>remya1000</dc:creator></item><item><title>VB.Net 2008 Sort DataGridViewTextBoxColumn Numeric values</title><link>http://www.a1vbcode.com/vbforums/Topic31179-9-1.aspx</link><description>&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;I’m using VB.Net 2008 application program.&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;I’m using DataGridView, where column types DataGridViewTextBoxColumn. I have 3 fields. 1 field values are numeric, 1 field values are string and 1 field values are decimal.&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;When I try to sort the string value column, it sorts correctly. But when i try to sort the numeric value column, it sorts as if its string value.&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;I searched a lot to make it sort numerically. But I couldn’t find it.&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;If you know how i can sort that column, please help me. If you can provide an example, that will be so helpful.&lt;/FONT&gt;&lt;/P&gt;&lt;P style="MARGIN: 0cm 0cm 10pt" class=MsoNormal&gt;&lt;o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;FONT color=#000000 size=3 face=Calibri&gt;Thanks in advance.&lt;/FONT&gt;</description><pubDate>Fri, 27 Jan 2012 16:03:48 GMT</pubDate><dc:creator>remya1000</dc:creator></item></channel></rss>
