Katalogerna
PlexityHide

Home 

Products 

Downloads 

Our Shop 

Support 

Contact 


GTP.NET FAQ 10980


Changing all row heights when one row is changing Please note that this article refers to the GTP.NET
Jump to article- 2007-09-01 12:20:00 - Email plexityHide

Question

I tried to use the OnRowResize event to change all rows while one was changing. The grid starts to flicker and behave weird when doing this...

Answer

To solve this we introduced a new event.

 

New event added OnRowResizeDone

 

Event fires when user has resized a row.

You can implement this event to do other changes that you want as a result of a row height change,

like if you want to change all other Grid rows the same way.

 

This event is available from 3.0.9.1

 

So your code can look like this:

 

    /// <summary>

    /// This sample show how to detect a user row height change and how to change all the rows

    /// alike after the user has released the mouse button.

    /// </summary>

    void Grid_OnRowResizeDone(Grid aGrid, RowResizeDoneArgs e)

    {

      for (int i = 0; i < aGrid.GridStructure.RootNodes.Count; i++)

      {

        aGrid.GridStructure.RootNodes[i].UserRowHeight = e.GridNode.Rect().Height;

      }

    }

 

 

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