I’m showing database records through a DataGridView in a WinForms application. Also , i have a textview , a combobox and a datetimepicker. How can i sort the datagridview to show only records which equals the textview or the combobox or datetimepicker?
I’m showing database records through a DataGridView in a WinForms application. Also , i
Share
Description
You need the
BindingSourcebetween your, for example,DataSetand yourDataGridView.With a BindingSource you are able to filter your DataSource because the BindingSource has a
.Filterproperty.If you change the filter, it will filter your
DataGridViewtoo.Sample
Add the BindingSource from the ToolBox, this is only a sample
More Information