tags:

views:

236

answers:

1

I am using the DataView.Sort to sort a column in the dataset. By default, does this assume the data is of type string when it does a sort. If so, how do I make it be datatype aware?

EDIT: How does it infer the datatype? I am creating a dataset from scratch

+1  A: 

.Sort will honor the datatype of the column. Now, if you've already converted the column to a string type for display you have a problem. But if it's still a datetime then you're okay.

Joel Coehoorn
How does it infer the datatype? I am creating a dataset from scratch
DotnetDude
You set the DataType property for each column in each table's .Columns collection.
Joel Coehoorn