Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Ability to change Selected/SelectedInactive cell brush

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

Ability to change Selected/SelectedInactive cell brush
Link Posted: 12-Jun-2006 23:51
I have found the source of the problem. Looks like FlyGrid 2.0 binaries have a problem running in x64 on a 64bit machine
Link Posted: 12-Jun-2006 23:57
Thanks for the info, we'll revisit our code to find and remove hardcoded references to System.Int64/Int32/In16.
Link Posted: 13-Jun-2006 00:28
ok, anyways, here is a link to a sample that shows the original problem. It appears when column is set to SmartFit.
http://www.kingvest.de/bugs/WindowsApplication8_2.rar
Link Posted: 13-Jun-2006 00:41
thanks, we've found a problem and try to solve it today.
Link Posted: 13-Jun-2006 03:26
This problem is fixed and FlyGrid is updated, please download latest version.
Link Posted: 13-Jun-2006 03:34
just updated, but I still see this problem happening?

{X=2,Y=24,Width=33,Height=16}
{X=2,Y=24,Width=32,Height=15}
{X=2,Y=24,Width=33,Height=16}
{X=2,Y=24,Width=32,Height=15}
{X=2,Y=24,Width=33,Height=16}
{X=2,Y=24,Width=32,Height=15}
{X=0,Y=0,Width=75,Height=16}
{X=0,Y=0,Width=74,Height=15}
{X=0,Y=0,Width=75,Height=16}
{X=0,Y=0,Width=74,Height=15}
{X=0,Y=0,Width=75,Height=16}
{X=0,Y=0,Width=74,Height=15}
{X=0,Y=0,Width=75,Height=16}
{X=0,Y=0,Width=74,Height=15}
{X=0,Y=0,Width=75,Height=16}
{X=0,Y=0,Width=74,Height=15}
{X=0,Y=0,Width=75,Height=16}
{X=0,Y=0,Width=74,Height=15}
{X=0,Y=0,Width=75,Height=16}
{X=0,Y=0,Width=74,Height=15}
{X=0,Y=0,Width=75,Height=16}
{X=0,Y=0,Width=74,Height=15}
{X=0,Y=0,Width=75,Height=16}
{X=0,Y=0,Width=74,Height=15}
{X=2,Y=41,Width=33,Height=16}
{X=2,Y=41,Width=32,Height=15}
Link Posted: 13-Jun-2006 03:36
I guess you're catching it from drawing but it still generates rects with those coordinates?
Link Posted: 13-Jun-2006 13:58
Yes, generates, but do not worry.
Column with FitMode == ColumnFitMode.FitToText needs to make some calculations, and if detected IStyledNode -  call its OnBeginPaint/OnEndPaint pair to let IStyleNode set drawing specifiers (currently - Font only) to correctly calculate size of text.
We've corrected this procedure and now OnBeginPaint/EndPaint provided with  internal Graphics object to avoid drawing to FlyGrid.
Currently you can skip drawing in OnBeginPaint/EndPaint if info.CellRect.Location == Point.Empty.