Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • I have a requirement to display the aspxgrid with the edit button, but I need to disable or hide the edit button conditionally depending upon a column's value. For example, I have a grid containing a list of transactions and their status ("Success" or "Failure"). I can only allow edits for transactions with the status of "Failure". I have tried several approaches that aren't working. Can you please point me in the right direction?

                                0

                                Hi,

                                Thank you for the report. I understand what you wish to achieve. I suggest that you use the HtmlRowCreated event, access the button element and finally set its Enabled property value to false. The sample project attached shows how this can be done in detail.

                                Thanks,
                                Plato

                                dxSample.zip
                                0

                                Hi,

                                With the new ASPxGridView builds, now the best solution is to handle the ASPxGridView.CommandButtonInitialize event, as illustrated in the linked example How to customize command buttons in individual rows.

                                Regards,
                                Serge

                                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