Home Forums WinForms controls Xceed Grid for WinForms ColumnManagerRow

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

    I want to create some space below the column header. I prove this code but it doesn’t work :

    ColumnManagerRow

    managerRow = new ColumnManagerRow();
    managerRow.ReportStyle.BottomMargin = 200;

    The reason i think is that it is for the report preview and not for the grid. However, is a way i can create it ?

    Thank you

    Imported from legacy forums. Posted by Edi (had 699 views)

    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)

    User (Old forums)
    Member
    Post count: 23064

    Thank you. It works.

    Imported from legacy forums. Posted by Edi (had 815 views)

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