Skip to content

Groupable Property

Description

Determines if a column can be grouped.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property Groupable() As Boolean

Remarks

If TRUE, the column can be added to the "Group By" box and the contents of the GridControl will be grouped by the column.

If FALSE, the column can't be added to the "Group By" box.

Example

Making a column not groupable (Visual Basic)

This sample illustrates how to disable grouping of a column.

' Add this to the General code section  
Const COLUMN_NAME = 1  

' This code is placed in the Form_Load event  
Dim Column As GridColumn  

Set Column = wndGridControl.Columns.Add(COLUMN_NAME, "Name", 300, True)  
' The column can't be added to the Group By box  
Column.GroupBy = False  

' Or you can access the column this way  
wndGridControl.Columns(COLUMN_NAME).GroupBy = False  

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.