Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 3.5 and Visual Studio. 2008 > Visual Studio 2008
|
Visual Studio 2008 For discussing Visual Studio 2008. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2008 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 27th, 2012, 04:52 PM
Authorized User
 
Join Date: Sep 2007
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB.Net 2008 Sort DataGridViewTextBoxColumn Numeric values

I’m using VB.Net 2008 application program.
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.
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.
I searched a lot to make it sort numerically. But I couldn’t find it.
If you know how i can sort that column, please help me. If you can provide an example, that will be so helpful.
Thanks in advance.
 
Old January 29th, 2012, 09:02 AM
Authorized User
 
Join Date: Sep 2007
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default

while adding data to column, somehow i converted that to string. once i removed that, it's working fine and start sorting.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help in vb.net 2008 saurabhorange Visual Basic 2008 Essentials 0 June 20th, 2010 06:33 AM
VB.NET 2003 Appendix B convert to VB 2008 Express Edition brucechess BOOK: Beginning VB.NET Databases 10 February 5th, 2009 12:52 PM
vb.net 2008 re: VB.NET databases book bigbearjeff VB.NET 0 June 2nd, 2008 01:22 PM
Bubble sort vb.net Brettvan1 VB.NET 2002/2003 Basics 1 September 30th, 2004 09:13 AM
trying to sort data in excel with vb.net deanna VB How-To 0 March 26th, 2004 04:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.