Current filter:
                                You should refresh the page.
                                Support Center
                                  • I just based on a sample of MVC Extension of GridView called "Sorting", so I created a new project and migrated all aspects of this sample to my project, including the settings "settings.Width = Unit.Percentage(100);", and I got the error "CS1660: Cannot convert lambda expression to type 'DevExpress.Web.Mvc.GridViewSettings' because it is not a delegate type".

                                    Simplifing the sample I removed some stuffs from it, including the above quoted settings, and it worked.

                                    When I uncomment the line with the above settings on the view GridPartial.cshtml the error occur, when it's commented the error doesn't occur.

                                    What I done wrong to make the full sample to run on my project ?




                                Hello Luciano:

                                I assume that this error is related to the fact that the Unit object is undefined.
                                Please change this settings as follows:

                                settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);


                                If you need additional product information, write to us at 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, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

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