Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Lanegrid cell back color (Read 1548 times)
tom_w
Junior Member
**
Offline


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
Lanegrid cell back color
May 1st, 2012 at 1:16pm
Print Post  
Hi

Is there any way to change the back colour of an individual lanegrid cell?  I know you can adjust the colour of the headers, but the cells appear to by ICells without a backcolor property?

Thanks, Tom
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Lanegrid cell back color
Reply #1 - May 2nd, 2012 at 6:12am
Print Post  
Hi,

You can change the background of an ICell through its Style.BackgroundBrush property. For example, the following code changes the background of the cell in the 3rd row and 5th column to red:

Code
Select All
diagram.LaneGrid[4, 2].Style.BackgroundBrush = new MindFusion.Drawing.SolidBrush(Color.Red); 


Regards,
Meppy
  
Back to top
 
IP Logged
 
tom_w
Junior Member
**
Offline


Swimlanes made our dreams
come true :-)

Posts: 79
Joined: Oct 20th, 2008
Re: Lanegrid cell back color
Reply #2 - May 5th, 2012 at 7:24pm
Print Post  
That worked perfectly, many thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint