RandyBlackburn
Programmer
I have a web datagrid which is using a dataview as its data source. In the designer, the LeadGrid's data source is set to dvLeadSearch. dvLeadSearch's table is set to a dataset.table. It's rowFilter is originally set to "LeadLastName = 'kelly'" in the designer.
The first population of the grid works fine
The RowFilter is reset in the btnLeadSearch_Click sub-routine below. But when I databind in this routine, an empty grid is returned, even if I don't change anything.
This doesn't happen if I set the grid's data source to the dataset.
The first population of the grid works fine
The RowFilter is reset in the btnLeadSearch_Click sub-routine below. But when I databind in this routine, an empty grid is returned, even if I don't change anything.
This doesn't happen if I set the grid's data source to the dataset.
Code:
Private Sub btnLeadSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLeadSearch.Click
LeadGrid.DataBind()
End Sub