Dropdown list for filter GridView
I tried different examples for filtering gridview by dropdown, but is it possible in on_click event? I create something like SelectedItem in each dropdown and add them to the button event? Sorry to be so vague .... I would like to have dropdowns with a selected value and then add them together to perform a filter based on the returned results.
thank
source to share
Your question seems a bit vague, but if I'm interpreting correctly you want a pair of dropdownlists and a button. Filtering should not be performed before the button is pressed.
Yes, you should be able to put code in the button_click event that references the SelectedItem or SelectedValue of the dropdowns and then assemblies and an expression that can be used to set the RowFilter from the GridView.
source to share