Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Thanks for the support

                                    I am using the LinqInstantFeedbackSource as the datasource for my Grid.

                                    This is the code that fills the Grid:
                                        Private BOMfg As New MfgBO

                                        Private Sub mLinqInstantFeedbackSourceMfgFilter_GetQueryable(????) Handles ????
                                            Try
                                                e.QueryableSource = BOMfg.MfgListQuery(mDisplayAllIfEmpty)
                                                e.Tag = BOMfg

                                            Catch ex As Exception
                                                XtraMessageBox.Show(ex.Message, "GetQueryable", MessageBoxButtons.OK, MessageBoxIcon.Error)
                                            End Try
                                        End Sub

                                        Private Sub mLinqInstantFeedbackSourceMfgFilter_DismissQueryable(????) Handles ???
                                            Try
                                                CType(e.Tag, MfgBO).Dispose()

                                            Catch ex As Exception
                                                XtraMessageBox.Show(ex.Message, "DismissQueryable", MessageBoxButtons.OK, MessageBoxIcon.Error)
                                            End Try
                                        End Sub

                                    This works great.

                                    I instantiate the Business Object outside of the GetQueryable Event because this is where I filter the data to be displayed.

                                    After setting new Filter Properties in my Business Objec I do the following in order to display a new filtered results in the Grid:
                                         gcFilter.DataSource = Nothing
                                         gcFilter.DataSource = mLinqInstantFeedbackSourceMfgFilter

                                    This does force the GetQueryable to Execute and retrieve my new filtered Queryable.
                                    The problem is that I get an error telling me the the Data Context has be disposed.

                                    So what I did is elemenate the DismissQueryable Event.
                                    This fixed my problem.

                                    I can now change the filter Paramaters in my business object as offten as I want and get the new resulte to display in the grid.

                                    My question is there a method or someway that I can force the GetQueryable Event to re-fire without haveing to set the DataSource = Nothing and back to the LinqInstantFeedbackSource again. This way I can keep the DismissQueryable Event in place.

                                    Thanks
                                    Andy

                                0

                                Hi Andy,

                                Currently, the best possible solution to this task is to re-set the GridControl's DataSource. In the future, we will possible add the method which will allow you to do the same.

                                Thanks,
                                Plato

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners