dbicList Send comments on this topic.
Developing with dbicList - User Drawn Cell.

Glossary Item Box

User Drawn Cell

A User Drawn Cell allows the developer to take over complete control of the presentation of any individual cell in any column in any item in the List.  The User Drawn Cell is ideal for implementing UI in a cell that is outside of the default presentation offered in the List.

The UserDrawnCell event is fired before a cell is painted.  The event handler receives an argument of type UserDrawnCellEventArgs containing the following data related to this event:

·        e.ColumnIndex (of type Integer): The zero-based index of the dbiColumnItem where the cell is being drawn.

·        e.ColumnItem(of type Dbi.WinControl.dbiColumnItem):  The dbiColumnItem where the cell is being drawn.

·        e.Graphics(of type System.Drawing.Graphics):  A handle to the graphics object responsible for drawing the cell. Through the e.Graphics object the developer has access to the GDI+ methods for drawing objects to a display device.

·        e.NodeItem(of type Dbi.WinControl.dbiNodeItem):  The dbiNodeItem that contains the cell being drawn.

·        e.PaintCell(of type Boolean):  Determines if the internal routines of the control should draw the cell. When the PaintCell property is set to False the control does not execute its internal paint routine and the developer has control over the painting of the cell.

·        e. Rect (of type System.Drawing.Rectangle):  A rectangle representing the area being painted in the control.