Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

          

MT.Clear();

this.BindMT();

MT.LoadFromDataSource();

MT.AutoResizeColumns();

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

Oliver

Former Member
replied

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.

Cheers.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question