Respected Sir, Iam applying filter to bindingsource like this
Private Sub ComboBox1_SelectedValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedValueChanged
If ComboBox1.SelectedValue > 0 Then
Dim myID As Integer
myID = ComboBox1.SelectedValue
If myDataset.myTable.Columns.Contains("catid") Then
BindingSource1.Filter = "catid =" & myID
end if
end if
But at the time of loading and closing the form, this gives an error that field "catid" doesnot exists. How to find that bindingsource is binded to a datatable that has a particular column "catid" ? and applying filter if only it exists ? yours faithfully Murulimadhav