Skip to Content
0
Former Member
Nov 03, 2015 at 02:42 PM

Matrix Clear Common Settings

317 Views

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