Click here to Skip to main content
15,891,909 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
visual studio 2012 C# windows form application

thanks In advance
Posted

1 solution

 
Share this answer
 
Comments
Muhammad Qasim Ludin 10-Dec-14 2:33am    
I used this code to filter from one date to another but still not working

bs.DataSource = dataGridView2.DataSource;
bs.Filter = string.Format("select * from sales_details where date between '"+dateTimePicker2.Text+"' and '" +dateTimePicker3.Text+"'");
dataGridView2.DataSource = dt;

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