-
October 7th, 2009, 03:15 AM
#1
Error in sorting datagridview's columns
I have a datagridview and all its columns are set to Double Datatype. The problem is when I changed the value of cell and try to sort the column, it shows me an error "Object must be of type Double." I check each cell but all its values are number and I can sort all the columns before I edit one cell. But when I tried to change the value of only one cell and sort the columns, the errors will show. Its weird because I only removed 1 digit of the cell value and I cant sort at all.
Code:
Dim col As New DataGridViewTextBoxColumn
col.ValueType = GetType(Double)
Thanks in advance.
-
October 8th, 2009, 07:32 PM
#2
Re: Error in sorting datagridview's columns
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|