I have a dataset with a column containing date in “DAY-MONTH-YEAR TIME” format. That dataset is bound to datagridview with “dataBinding” object. Dataset is not typed, it’s not connected to any database, it’s filled “on the fly” with data from user input.
I also have two datetime pickers – one for selecting minimum date, another for selecting maximum date for results. When user select some “minimum” date from datetime picker, results in datagridview should be filtered according to selection. I know how to use “dataBinding.Filter” but how to filter when i need to select only rows whose “Date” column falls between “dataTimePickerMin” and “dateTimePickerMax”?
I have a dataset with a column containing date in DAY-MONTH-YEAR TIME format. That
Share
Parse the dates with DateTime.Parse and type the column as DateTime:
then you can use > and <