Skip to Content
avatar image
Former Member

System Matrix Cell Read Only


Is it possible to make just one cell of a row read only ?

also is it possible to change the color of that cell ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    May 17, 2011 at 02:49 PM

    For versions before 8.81:

    To "set" it read only I think is not possible. But you can work around, by blocking all events on that particular cell - it's not a very pretty workaround but will do what you need; block got_focus, click etc and basically the cursor can never enter that particular cell - downside, there is no visual signal for the user to indicate that it is read only.

    For changing colour; it depends. If you mean the background or text colour, then unfortunately no. You can do another workaround where you add a picture column and change the picture file being used in that cell depending on the status you desire - obviously this is not what you are looking for, but I'm afraid it's the best I can suggest.


    From 8.81 on you can:

    Cells Configuration: In matrix and grid objects, you can now:

    Set colors and fonts for rows, columns, and cells

    Disable or enable cells

    Set and get the focus of a specific cell (GetCellFocus and GetCellFocus methods of the Grid and Matrix objects)

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I'm looking for a better way to get the column for using SetCellBackColor as it needs the one in order or I'm not even sure but

      also when I try to make the ItemCode not editable by this code, it gives the error Item - Item is not a user defined item

      oMatrix.CommonSetting.SetCellEditable(iDetailRow, 3, false);

      17 which is the order in which the Unit Price is, doesn't have it's color changed to Orange so I'm wondering why many things doesn't work the way it is supose to work

      oMatrix.CommonSetting.SetCellBackColor(iKitRow, 17, GetColor(Color.Orange)); // Matrix is SAP Sales Order

      Edited by: Marc Roussel on Aug 24, 2011 10:38 AM

      Edited by: Marc Roussel on Aug 24, 2011 10:43 AM

  • avatar image
    Former Member
    Mar 17, 2015 at 09:16 PM

    When i'm trying to set a row editable false on a system matrix the program display Item - the item is not a user-defined item is there any solution to this?

    Add comment
    10|10000 characters needed characters exceeded