Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi,

                                    I am using XtraGrid Control to Display some dynamic data. I simply Bind xtragrid control with DataSource which contains different columns and number of columns each time according to user clicks. The problem I am facing is that first time grid shows correct columns but later on columns remain same even if doesnot exist in datasource. I also have tried by refresh() my grid but still same.
                                    please guide me the way that how can I make my grid to display correct columns each time.

                                    Thank you,

                                    Regards,
                                    Muhammad

                                0

                                Hi Muhammad,

                                Thank you for your question. To solve this problem, call the View.PopulateColumns method to recreate columns for all the fields in the View's bound datasource.

                                Thanks,
                                John.

                                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