cancel
Showing results for 
Search instead for 
Did you mean: 

Matrix Clear Common Settings

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

pedro_magueija
Active Contributor

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

Former Member
0 Kudos

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!!! 😉

Thanks

Oliver

Answers (0)