CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

FilteredBindingList / ApplyFilter not working?

rated by 0 users
Answered (Verified) This post has 1 verified answer | 1 Reply | 0 Followers

Top 50 Contributor
163 Posts
gajit posted on Thu, Feb 23 2012 2:50 PM

Has the implementation of FBL changed in CSLA4.

My ApplyFilter method does not result in any matches to my fLIst - and there are definitely matches:

    Private Sub DisplayList(ByVal list As Library.CodeList)

        Using busy As New StatusBusy("Loading Codes...")
            Try

                Dim fLIST As New Csla.FilteredBindingList(Of CodeInfo)(list)

                If Len(cbCodeTypes.Text) > 0 Then
                    fLIST.ApplyFilter("CODETYPE", cbCodeTypes.SelectedValue.ToString)
                End If

                Me.CodeListBindingSource.DataSource = fLIST

                mNUMBERRECORDS = fLIST.Count

                LabelName.Text = Me.ToString
                Me.Refresh()

            Catch ex As Exception
                MessageBox.Show(ex.ToString, _
                       "Error loading Codes", MessageBoxButtons.OK, _
                       MessageBoxIcon.Information)
            End Try
        End Using

    End Sub 

 Any ideas?

Thanks,

Graham

Answered (Verified) Verified Answer

Top 50 Contributor
163 Posts
Answered (Verified) gajit replied on Thu, Feb 23 2012 3:32 PM
Verified by gajit

Figured it out.

The Property parameter is case-sensitive.

Graham

Page 1 of 1 (2 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems