I’m using VB.Net 2008 application program.
I’m using DataGridView, where column types DataGridViewTex tBoxColumn. 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.
1 2246
while adding data to column, somehow i converted that to string. once i removed that, it's working fine and start sorting.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: qazmlp |
last post by:
I have got the following strings:
121721234567890
13
1217212345
129
Is it possible to do descending sort for these strings based on their
numeric values?
After sorting, they need to figure in this order:
|
by: success_ny |
last post by:
Does anyone have a code snippet to compare those values so I can sort
the array of alpha-numeric values that include both characters and
integers in it?
I.e., if we have values like 4236 and 123234, I want 4236 to be second
because 4 is bigger than 1 rather than using the numeric comparison.
The strings can include character values and strings. Basically, I have
the bubble sort function, the question is how to compare those types of...
|
by: a |
last post by:
I would like to do the following:
my list = (100,2,5); #create a list
my @sorted = sort {$a<=>$b} list; #sort ascending
#want @sorted = (2,5,100)
What's wrong with my list with numeric values?
Thanx
|
by: vighnesh |
last post by:
Hi All
I am presently dealing with a project,in which I have to convert an XLS file
into XML file.
To accomplish this I have used Dataset as intermediatory to store the data
from XLS and
writting the data to XML file.
But unfortunately I am not getting Boolean and Numeric values from the given
XLS file into
Datset.For all other XLS file its working fine.So,can anyone please help me
|
by: Anders Würtz |
last post by:
i have an assignment to iterate through a collection containing
different types of numeric values (float, double, int, byte, short etc.)
and to add 1 to all of them. I tried with array and arraylist so far,
but i either get a cast exception or the value doesn't seem to get
updated at all. What should i be doing to make it work?
Thanks in advance
Anders
| |
by: Krish |
last post by:
I want to have an enum that has a list of numeric values. How do I
achieve this?
Something like this ...
Public Enum AllowedNumbers
{
111,
222,
333,
|
by: pchadha20 |
last post by:
How to single numeric values from a field in a table which has multiple numeric value in a field of a table.And that table contains thousands of records.
Suppose we have a table customer having fields like
CUST_ID, CASTE, AGE etc.
101 (12,89,76,34,66,90,36) 23
128 (27,45,71,211,43,107,67,451) 26
117 (11,23,32,265,142,88,67,98) 30...
|
by: nussu |
last post by:
Hi,
Plz provide me javascript :
javascript for a textbox to accept the values in decimals and within range
i need to enter a value in textbox like 1.03 and it should be <3 (lessthan 3).
Plz help me.
Rgds,
|
by: Ronald S. Cook |
last post by:
We have a table "Animal" that contains the column "AnimalNumber" with values
like these:
100001
100002
100003
1XAB
10E43ABC
11RU5V
|
by: chaitanya83 |
last post by:
I need to ensure that only numeric values can be obtained from the user.The non numeric values from the user should throw a validation error.How can this be done using validators in JSF?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |