The datetimepicker doesnot properly filter datagridview data : Hey Guys I have faced the bug that cause the filter work improperly, that is, when I change the value in datetimepicker then datagridview gets empty. Please help!!!
The code that I use is 

>  private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
>         {
>             dataGridView1.DataSource = db.Expenses.Where(x => x.Period == dateTimePicker1.Value).ToList();
>         }