Home - Forums-.NET - FlyGrid.Net (Windows Forms) - info.rowRect bug in OnBeginPaint(CellDrawInfo info),IStyledN

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

info.rowRect bug in OnBeginPaint(CellDrawInfo info),IStyledN
Link Posted: 11-Aug-2006 05:18
http://acutedream.com/photontrader/videos/rowRectBug/rowRectBug.html

my code being:

public void OnBeginPaint(CellDrawInfo info)
{
   if (info.node.Selected)
   {
      info.g.FillRectangle(Brushes.DeepPink, info.rowRect);
   }
}
Link Posted: 11-Aug-2006 07:22
Did you see the code of ToDoStyledNode in treelistViewfrm.cs of the FlyGrid.Net Demo?
Please see ToDoStyledNode code to correct your code.
Link Posted: 11-Aug-2006 09:50
Regardless,
info.rowRect is still buggy
i want to use a brush so i can draw a hatch pattern when you select the node


Joe
Link Posted: 11-Aug-2006 10:00
In this case you should implement ICustomDrawNode interface,
you can find a sample code in the virtualGridForm.cs, CustomDrawVirtualNode class.
This interface provide more possibilities for custom drawing.