Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

How to fetch/filter Exceldata after importing in datagridview from date to date in C#.

$
0
0

Hay Guys!

I want to filter Excel data sheet after importing  in datagridview  between tow period,

(e.g. I have month repport  as excel sheet that contains 8 columns and 1700 recordes , I want to show excel sheet  from1/10/2019 to 5/10/2019

I have filter button when I click it it will fiter the sheet and show only the data at1/10/2019 to 5/10/2019date.

I have this line in filter button 

 OleDbCommand command = new OleDbComman("Select *…………………………………., con);

I cann't write an excepression here, I have datagridview, button to select button to select excel path, dateTimePicker1,dateTimePicker2, and filter button.

Thanks!



Viewing all articles
Browse latest Browse all 2535

Trending Articles