Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
For each Row
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01245258
Message ID:
01245477
Views:
15
Gregorio,

In that case, the DefaultView of your DataTable will have the same Filter applied to it as you applied to the BindingSource.

~~Bonnie




>Mike:
>
>I am not using a dataview. here is the code that show how i am using it.
>
>
>Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
>        If Len(Trim(Me.ComboBox1.Text)) > 0 And Trim(Me.ComboBox1.Text) <> "All" Then
>
>            '    If Trim(Me.ComboBox1.Text) <> "All" Then
>            Me.DsINVAssetsDepreciationLookupBindingSource.Filter = "DepartmentAbbreviation = '" + Me.ComboBox1.Text + "'"
>            'Me.INV_AssetsDepreciation_LookupTableAdapter.Fill(DsINV_AssetsDepreciation_Lookup.INV_AssetsDepreciation_Lookup)
>        Else
>            'Me.DsINVAssetsDepreciationLookupBindingSource.Filter = ""
>            Me.DsINVAssetsDepreciationLookupBindingSource.RemoveFilter()
>
>
>        End If
>
>    End Sub
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform