Katalogerna
PlexityHide

Home 

Products 

Downloads 

Our Shop 

Support 

Contact 


GTP.NET FAQ 11123


I want to extend the grid columns so that they always fill the space in grid Please note that this article refers to the GTP.NET
Jump to article- 2008-01-31 10:25:00 - Email plexityHide

Question

 

How can I automatically extend the grid column to use up all the space in the grid?

 

Answer

 

Implement the Grid.Resize event and do something like this:

 

 

    void Grid_Resize(object sender, EventArgs e)

    {

      if (gantt1.Grid.Columns.SumWidth()<gantt1.Grid.Width)

      {

        gantt1.Grid.Columns.FirstVisibleColumn().Width+=gantt1.Grid.Width-gantt1.Grid.Columns.SumWidth();

      }

    }

 

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