Skip to content

DrawSortTriangleAlways Property

Description

The DrawSortTriangleAlways property specifies when the sort triangle is drawn.

Property Type

  • Read-write property

Syntax (Visual Basic)

Public Property DrawSortTriangleAlways() As Boolean

Remarks

If DrawSortTriangleAlways is TRUE, the sort triangle displayed in column headers when a column is sorted will always be displayed as long as the column size is large enough to draw the triangle.

If DrawSortTriangleAlways is FALSE, the triangle will be removed when the column size is too small to display both the caption and triangle. This will cause only the caption to be drawn. If the column size is too small to display the entire caption, the caption will be abbreviated with ellipses.

By default, it is TRUE.

Example

DrawSortTriangleAlways Sample (Visual Basic)
This sample illustrates how to hide the sort triangle when the column width is too small to display both the column caption and the sort arrow.

' The sort triangle will be hidden if the column width is too small to display both  
' the caption and sort arrow.  
wndGridControl.PaintManager.DrawSortTriangleAlways = False

See Also


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