Home Forums WinForms controls Xceed Grid for WinForms ColumnManagerRow Reply To: ColumnManagerRow

User (Old forums)
Member
Post count: 23064

There is no property to do this directly in the grid.  You can only do this by deriving from the ColumnManagerRow class and overriding the Border property.

e.g. (this is the minimum implementation ):

public class MyColumnManagerRow : ColumnManagerRow

{

    public MyColumnManagerRow()

    :

base()

    {

    }

    public override Borders Borders

    {

        get

        {

            return new Borders( 0, 0, 1, 200 );

        }

    }

}

 

Then in your code, replace the default ColumnManagerRow by yours :

private void Form1_Load( object sender, EventArgs e )

{

    gridControl1.FixedHeaderRows.RemoveAt( 1 );

    MyColumnManagerRow myManagerRow = new MyColumnManagerRow();

    gridControl1.FixedHeaderRows.Add( myManagerRow );

}

 

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