DevExpress Gridcontrol Composite Header (multi-row header) settings.

Source: Internet
Author: User


For an example of a composite header or multiline header for Devexpress.xtragrid , the interface is shown in the following figure

1. First, convert the DevExpress gridcontrol to Bandedgridview

2. Set the fields to display columns and bindings

The setting here is the same as our usual use of Gridcontrol workpieces.

3. Go to Design view (see figure below), click Bands,

3.1 Add multiple band, as shown in the 1 key add

3.2 Layout: Drag the corresponding band for layout, adjust the position of band as needed,

4.3 Data binding:

"Click Show Columns selector display before we set the column" Select the appropriate column below the specified band, as shown in the area in Figure 2

3. Property settings (hide header), as shown below

In the View option, open Optionsview, set false for properties of Showcolumnheaders and Showgrouppanel,

4.grctbrequirematerielgroup.datasource = Data Set, multi-header Setup to complete, run results see the screenshot from the beginning of the article

For an example of a composite header or multiline header for Devexpress.xtragrid , the interface is shown in the following figure

1. First, convert the DevExpress gridcontrol to Bandedgridview

2. Set the fields to display columns and bindings

The setting here is the same as our usual use of Gridcontrol workpieces.

3. Go to Design view (see figure below), click Bands,

3.1 Add multiple band, as shown in the 1 key add

3.2 Layout: Drag the corresponding band for layout, adjust the position of band as needed,

4.3 Data binding:

"Click Show Columns selector display before we set the column" Select the appropriate column below the specified band, as shown in the area in Figure 2

3. Property settings (hide header), as shown below

In the View option, open Optionsview, set false for properties of Showcolumnheaders and Showgrouppanel,

4.grctbrequirematerielgroup.datasource = Data Set, multi-header Setup to complete, run results see the screenshot from the beginning of the article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.