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