Skip to Content
avatar image
Former Member

Matrix Clear Common Settings

Hi all,

question to Matrix and Common Settings...

I colored some rows... with...

MTSet.SetRowBackColor(i, Convert.ToInt32("0000FF", 16));

after some work I want to reset the Matrix...

IMatrix MT = (Matrix)this.FormObject.Items.Item("MT01").Specific;


ICommonSetting MTSet = MT.CommonSetting; // just for info at this time






But the color is still there at the lines changed...

The DBdatasource is filled with a new query...

What is the best way of clearing the Matrix to the very first settings?

Best regards


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 03, 2015 at 04:24 PM

    Hi Oliver,

    I think you'll have to manually reset the value. I'm not sure but I think SetRowBackColor(row, -1); set it to the default color. But again, I'm not sure.


    Best regards,

    Pedro Magueija

    View Pedro Magueija's profile on LinkedIn

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Pedro,

      you are right!!!! Thanks.

      I have done this with MTSet.SetRowBackColor(i, Convert.ToInt32("FFFFFF", 16))

      and set the cels back to grey...

      but this is much better!!! ;-)