cancel
Showing results for 
Search instead for 
Did you mean: 

Setting colour of particular row in matrix

former_member209699
Contributor
0 Kudos

Hi,

I am using SAP 2007B. And I want to set color of particular row as per my conditions.

I am able to color for whole column using

_Matrix.Columns.Item(col).ForeColor = System.Drawing.Color.Green.ToArgb();

but for a particular row if anybody having any suggestions then please let me know.

regards:

Sandy

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hai,

Just try this,

'//Suppose, You want to set colour for row 2

rowindex=2

for columnindex=1 to omatrix.Columns.Count

oEdit = omatrix.Columns.Item(columnindex).Cells.Item(rowindex).Specific

oedit.ForeColor=System.Drawing.Color..Green.ToArgb();

next columnindex

Hope this helps you.

Former Member
0 Kudos

The following code is not working plz give the correct,

for columnindex=1 to omatrix.Columns.Count

oEdit = omatrix.Columns.Item(columnindex).Cells.Item(rowindex).Specific

oedit.ForeColor=System.Drawing.Color..Green.ToArgb();

next columnindex

Former Member
0 Kudos

can any body know how to change the row color in matrix?

former_member689126
Active Contributor
0 Kudos

Hi

This is possible only in SAP Business one 8.81 or above

Regards

Arun

Former Member
0 Kudos

In 2007 version, this is just not possible and there is no workaround for it