Click here to Skip to main content
15,745,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +

Please help me with my simple problem. I have a grid that I want to sort by two DateTimes.

I don't know how to do that

productBindingSource1.Filter = 

And then?

Please help

In grid and sql table is a DateTime column with DateTimes.
Updated 10-Nov-10 8:03am

1 solution

I am a little confused because first of all you say you want to sort but your code snippet uses the Filter property of the bindingSource.

I'm going to assume that you meant sort.

productBindingSource.Sort = "nameOfFirstDateColumn ASC, nameOfSecondDateColumn DESC";
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900