Grid Panels
The FlexGrid control is made up of six GridPanel elements:
- topLeftCells: Panel on the left of the column headers, typically containing a single empty cell that can be clicked to select the whole grid content. This panel does not scroll.
- columnHeaders: Panel above the data cells, typically containing a single row with cells that can be clicked to sort the grid or dragged to resize or re-arrange the columns. This panel scrolls horizontally.
- rowHeaders: Panel on the left of the data cells, typically containing a single column that can be clicked to select rows and that displays icons for rows being edited or added. This panel scrolls vertically.
- cells: Panel that contains the data cells. Users can select cells by clicking and dragging on this panel or by using the keyboard. This panel scrolls horizontally and vertically.
- bottomLeftCells: Panel to the left of the column footers. By default, this panel contains no rows and therefore is not visible.
- columnFooters: Panel below the data cells, typically used to show column summary information. By default, this panel contains no rows and therefore is not visible.
Although these panels are synchronized so that they remain aligned with each other when the grid scrolls, each one has its own set of properties that can be used to customize the specific areas of the grid.
Move the mouse over the grid below to see each panel and hit-test information of the cell being hovered:
Notice the columnFooters panel at the bottom of the grid. This panel is empty by default, but we have added a GroupRow to the same. The GroupRow automatically shows aggregate values for each cell calculated based on the value of the column's aggregate property, which in this example is set to 'Sum'.
You can use the headersVisibility property to select which header panels should be visible: