piDogDataView.DataView.PaintSortIndicator

Scope: Public
Event PaintSortIndicator(g as Graphics, area as Rect, Column as Integer, byref ascending as Boolean) As Boolean
This event allows you to override or modify the build-in Sort Indicator drawing when not using system sort indicators. usesSystemSorftIndicators must be set to False or the event will not fire.

Modify the Area parameter to adjust the location of the indicators.
Modify g.Forecolor to adjust the color
Return true to prevent the DataView built-in drawing.


// Changing the size of the indicator

area.Left=area.Left-5
area.Width=area.Width+5
Return false //false to get the DataView Indicators to draw in the new area


// Changing the color of the indicator

g.ForeColor=&c000000
return false //false to get the DataView to draw the indicators with the new color


// Drawing your own style indicator

if ascending then
g.DrawLine(area.Left,area.Bottom,area.HorizontalCenter,area.top)
g.DrawLine(area.HorizontalCenter,area.top,area.Right,area.Bottom)
else
g.DrawLine(area.Left,area.top,area.HorizontalCenter,area.Bottom)
g.DrawLine(area.HorizontalCenter,area.Bottom,area.Right,area.Top)
end if

Return true //True to prevent the DataView from drawing indicators over your new style