Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Custom Stylist ?

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Custom Stylist ?
Link Posted: 21-Jun-2007 22:32
I want to override the draw for the Filter Button (it's ugly).  Is there a way I can do just this with a custom column or do I have to create a custom stylist?

If I do have to create a stylist, can is there a simple way to just provide the draw method for Parts.ColumnFilterMark or do I have to do draw for all Parts??
Link Posted: 25-Jun-2007 20:24
Yes, you can create or override from GradientStylist to override filter mark drawing.
Or you can inherit your column class from any of available column classes and override Column.PaintHeader or Column.DrawFilterMark to implement your own drawing of header or filter mark.
Link Posted: 04-Jul-2007 20:40
[quote="NineRays"]Yes, you can create or override from GradientStylist to override filter mark drawing.


Do you have any examples of this?  I'd rather not impliment the GradientStyleList as it does a lot of other style items I don't want, I just want to override the FilterMarks for each column type

[quote="NineRays"]Or you can inherit your column class from any of available column classes and override Column.PaintHeader or Column.DrawFilterMark to implement your own drawing of header or filter mark.


I did this, but it only overrides columns where I use that custom column type, Consequently I cannot then use any of the standard columns and allow filtering..