Home Forums WinForms controls Xceed Grid for WinForms How to edit column header of the grid control? On click event. Reply To: How to edit column header of the grid control? On click event.

User (Old forums)
Member
Post count: 23064

You can use the ColumnManagerCells to do this.

e.g.:

    private void Form1_Load( object sender, EventArgs e )
    {
      foreach( ColumnManagerCell cell in columnManagerRow1.Cells )
      {
        cell.Click += new EventHandler( cell_Click );
      }
    }

    void cell_Click( object sender, EventArgs e )
    {
      ColumnManagerCell cell = sender as ColumnManagerCell;
      System.Diagnostics.Debug.WriteLine( cell.FieldName );
    }

Imported from legacy forums. Posted by André (had 2240 views)