Welcome to the Xceed Community | Help
Community Search  
More Search Options

ColumnManagerRow

Sort Posts: Previous Next
  •  11-17-2008, 4:12 AM Post no. 16923

    ColumnManagerRow

    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

  •  11-17-2008, 4:02 PM Post no. 16948 in reply to 16923

    Re: ColumnManagerRow

    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 );

    }

     


    André
    Software Developer
    Xceed Software Inc.
  •  11-18-2008, 4:40 AM Post no. 16967 in reply to 16948

    Re: ColumnManagerRow

    Thank you. It works.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.