Ticket Q99250
Visible to All Users

readonly certain columns for certain rows in a list view grid

created 17 years ago

Hi,
I have a scenario where a field is read-only based on the data contained within the business object. When looking at the list of object via an editable list view, this means that the column of the grid needs to be readOnly = false, but for some rows the editor should not be accessible as that property is read only.
Is this possible?
Thanks,
Mark

Comments (2)
DevExpress Support Team 17 years ago

    Hi Mark,
    Thank you for the question. I'm afraid XAF doesn't have a special option that allows you to accomplish this task. You need to use an approach described in the XtraGrid How to Conditionally Prevent Editing for Individual Grid Cells article. To learn how to obtain the GridView, refer to the OBSOLETE - How to Customize Settings of Windows Forms Controls Used in XAF article.
    Thanks,
    Marina

    MK MK
    Mark Krasnohorsky 17 years ago

      Hi Marina,
      That is what I was looking for.
      Thank you,
      Mark

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.