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 Answer 1

1

.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.

Sign up to request clarification or add additional context in comments.

2 Comments

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.