DevExpress Gridcontrol How to set up a composite table header or multiple row headers

Source: Internet
Author: User
Tags header

First, Devexpress.xtragrid's example of a Gridcontrol composite or multiline header is shown in the following illustration:

Implementation steps:

1, the devexpress Gridcontrol converted to Bandedgridview, the following figure:

2, set the Display column and bound fields, this setting is the same as we normally use gridcontrol usage.

3, into the Design view (see below), click Bands, the following figure:

Operation Steps:

3.1 Add multiple band, as shown in the bands button add

3.2 Layout: Drag the corresponding band for layout, adjust the position of band according to Need, (note: First, by dragging the corresponding band to achieve multiple headers, and then drag the data has been bound or have been built, but there is no data for the column, to achieve the corresponding. In the following illustration, the top row is implemented by dragging the corresponding band, and the second line is the data to be displayed in the corresponding band position. )

Related 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.