sorting triangle on datagrid column header.

  • Thread starter Thread starter Leo
  • Start date Start date
L

Leo

Can someone tell me how to make the sorting triangle on
datagrid column header always show up?

And which property can change the color of the triangle ?
The default color is white.

Thanks
 
Hi Leo,

Tracey asked about the DataGrid triangle back on the 29th Aug and <nobody>
answered her, poor thing.

I've no idea about the colour aspect. I suspect that there's no property
for the triangle colour. It's possible to create your own version of DataGrid
by inheriting from it and overriding the Paint event. But how you then change
the triangle colour is a mystery.

On whether the triangle is visible. My understanding is that it will be
visible when the column is the sort column and will be absent if the column is
not a sort column.

Regards,
Fergus
 
Leo said:
Can someone tell me how to make the sorting triangle on
datagrid column header always show up?

And which property can change the color of the triangle ?
The default color is white.

This is not a VB.NET specific question, it's a question about the Framework,
to be exact about a control, so
microsoft.public.dotnet.framework.windowsforms.controls is the best group
for this question.
 
Hi Leo,

If you mean inherit from DataGrid and override Paint, well done. :-)

Regards,
Fergus
 
Back
Top