Method PaintRows
PaintRows(Graphics, RectD, float, int?, int?)
Paints the visible rows within the specified rectangle using the provided graphics context, applying an optional width increment to the painting area.
public virtual void PaintRows(Graphics dc, RectD paintRectangle, float widthIncrement, int? fromIndex = null, int? toIndex = null)
Parameters
dcGraphicsThe graphics context used to render the rows.
paintRectangleRectDThe rectangle that defines the area in which rows are painted.
widthIncrementfloatThe additional width, in device units, to add to the painting rectangle before rendering the rows.
fromIndexint?The optional starting index of the rows to paint. If null, painting starts from the first visible row.
toIndexint?The optional ending index of the rows to paint. If null, painting ends at the last visible row.
Remarks
This method iterates over all visible rows and paints each one according to the current drawing mode and selection state. If partial row visibility is disabled, only fully visible rows within the specified rectangle are painted. The method updates the list of items that were last painted. Override this method to customize row painting behavior.