Katalogerna
PlexityHide

Home 

Products 

Downloads 

Our Shop 

Support 

Contact 


GTP.NET FAQ 10786


Event when grid row is resized Please note that this article refers to the GTP.NET
Jump to article- 2006-12-09 15:10:00 - Email plexityHide

Question

I use the following code to draw horizontal lines on the TimeItemArea.


private void gantt1_OnTimeItemAreaPaintBackground(OffscreenDraw aOffscreenDraw, OffscreenDrawArgs e)
{
  for (int i = 0; i < gantt1.Grid.GridStructure.RootNodes.Count; i++)
  {
    Rectangle rect = gantt1.Grid.GridStructure.RootNodes[i].Rect();
    Debug.Print(rect.Top.ToString() + " " + rect.Left.ToString());
    e.G.DrawLine(new Pen(new SolidBrush(Color.DeepSkyBlue)), aOffscreenDraw.CalcLeft, rect.Top, aOffscreenDraw.CalcRight, rect.Top);
  } 
}

What event is fired when a user resizes the height of a grid row to update the lines?

Answer

Grid.OnRowResize, this event was introduced recently and is not currently in the help file.

 

Google
WWW plexityHide GTP.NET FAQ
Support

Support intro

Knowledgebase

FAQ phGantTimePackage

FAQ GTP.NET

FAQ general

Testimonials

"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%"
Gaurav Patole,
WebTechDevelopers
More testimonials...