Katalogerna
PlexityHide

Home 

Products 

Downloads 

Our Shop 

Support 

Contact 


GTP.NET FAQ 10679


Is there an event that it fires when a row width is changed by a gui-action (not if you set it by code)? Please note that this article refers to the GTP.NET
Jump to article- 2007-01-02 11:17:00 - Email plexityHide

Question

Is there an event that it fires when a row width is changed by a gui-action (not if you set it by code)?

Answer

Yes, Gantt.Grid.OnRowResize

Sample in VB.NET:


Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

  AddHandler Gantt1.Grid.OnRowResize, AddressOf My_OnRowResize ' add an event handle thru code 

  Gantt1.Grid.Columns.AddNew(PlexityHide.GTP.CellType.SingleText)
  Gantt1.Grid.RootNodes.AddNode()
  Gantt1.Grid.RootNodes.AddNode()
  Gantt1.Grid.RootNodes.AddNode()

End Sub

' Implement the eventhandler
Private Sub My_OnRowResize(ByVal aGrid As PlexityHide.GTP.Grid, ByVal e As PlexityHide.GTP.RowResizeArgs)
  ' If the row is getting higher than 50 pixels we stop it from growing further
  If e.Delta > 0 And e.GridNode.Rect.Height > 50 Then
    e.Delta = 0
  End If
End Sub

 

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...