Home - Forums-.NET - FlyGrid.Net (Windows Forms) - ColumnAlignment, cells draw inconsistent

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

ColumnAlignment, cells draw inconsistent
Link Posted: 07-Jun-2006 08:21
What grid controls did you saw?
These controls are native .Net controls?
Link Posted: 07-Jun-2006 08:22
DataGridView, SandGrid
yes, all native .NET 2.0
Link Posted: 07-Jun-2006 09:15
Both of these controls has a same problems.
This is a problem of GDI+, if you'll use native WinAPI drawing functions - right alighed data will displayed correctly.
Link Posted: 07-Jun-2006 09:21
I just checked with another project of mine that uses the DataGridView very extensively and I'm not able to reproduce this behavior there. All data aligns correctly
Link Posted: 07-Jun-2006 09:23
DataGridView:
Link Posted: 07-Jun-2006 09:26
hm, very strange, I don't see this happen in my application. What did MS say when you asked them about this? Did they say this is a known bug or anything?
Link Posted: 07-Jun-2006 09:38
I've some talks with another ISV's that provide .Net GUI controls.
Some of them (QWhale.Net in SyntaxEdit) have solved this problem by using own WinAPI-based painter. Some solve this problem with use Lucida Console font.
Link Posted: 07-Jun-2006 09:42
ok thanks. I think SandGrid might do it similar to QWhale. In some scenarios they use their own painting engine on top of GDI as well.
Link Posted: 07-Jun-2006 10:00
Not sure that SG uses WinApi calls to draw strings (in this case Tim should use unmanaged Hdc, pens and brushes)  
Try to display in SG right aligned data containing various symbols - ~,*, %, $, -, comma, ; with numbers to see problem.
QWhale needs a VERY precise engine to parse and display texts, because they're replaced  GDI-based painter with WinApi-based.
Link Posted: 07-Jun-2006 10:03
Also: I've tested monsters - Xtra grid and Ultra grid - they have same problem.