Home Forums WinForms controls Xceed Grid for WinForms Resizing Columns in a grid

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #15888 |

    I need to trap the resize event that occurs when changing the size of a column with the columns splliter of the grid. That is to change the size and position of other controls in the form acordingly the size and location of each colmun.

    It’s than possible?

    I’m using In Visual Studio .NET and c#.

    Thanks.

    Imported from legacy forums. Posted by Javier (had 2451 views)

    Xceed Support
    Member
    Post count: 5658

    You can simply subscribe to the WidthChanged event on each column.

    <code>
    private void Form1_Load( object sender, EventArgs e )
    {
    //Load data

    foreach( Column col in gridControl1.Columns )
    {
    col.WidthChanged += new EventHandler( col_WidthChanged );
    }
    }

    void col_WidthChanged( object sender, EventArgs e )
    {
    //

    </code>

    Imported from legacy forums. Posted by CharlesB (had 183 views)

    User (Old forums)
    Member
    Post count: 23064

    This works, Charles.

    Thanks.

    Imported from legacy forums. Posted by Javier (had 3576 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.