When a DataGrid must be painted, a row will call this method on each of the columns.
[Visual Basic] Overloads Overrides Public Sub Paint( _ ByVal g As Graphics, _ ByVal bounds As Rectangle, _ ByVal source As ListManager, _ ByVal rowNum As Integer _ ) [C#] public override void Paint( Graphics g, Rectangle bounds, ListManager source, int rowNum ); [C++] public: override void Paint( Graphics* g, Rectangle bounds, ListManager* source, int rowNum ); [JScript] public override function Paint( g : Graphics, bounds : Rectangle, source : ListManager, rowNum : int );
This method simply emits a string value and paints the background with the background color in the graphics object passed in. The painting logic is identical for all DGridColumnState values.
DataGridValueColumn Class | DataGridValueColumn Members | System.WinForms Namespace | DataGridValueColumn.Paint Overload List