I have two drop down lists to use as a filter for a gridview. This is what the select command in the gridview's datasource looks like:
SelectCommand="SELECT * FROM [datatable] WHERE ([afield] = @afield) OR ([bfield] = @bfield) ">
<selectparameters>
Type="String" />
Type="String" />
</selectparameters>
The filtering is not working for the second control. Bfield does not filter the data.
SelectCommand="SELECT * FROM [datatable] WHERE ([afield] = @afield) OR ([bfield] = @bfield) ">
<selectparameters>
Type="String" />
Type="String" />
</selectparameters>
The filtering is not working for the second control. Bfield does not filter the data.