I want to put a GDI type circle on top of my DataGrid (actually I want to put GDI colored border around the entire selected row, but if I can figure out how to put a circle on top of it I can do the border)
My main form uses a MyDataGrid. instance as the folowing code from MyDataGrid.cs
public class MyDataGrid : DataGrid
..
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint (e);
}
On my small datagrid it hits this code about a 100 or so times, it seems it's painting each cell, headers, etc individually with all that TableStyles stuff.
Where in my code would I do the circle painting thing. Or, where in my code am I after it finishes with this OnPaint. Is this done in my main form, or do I need to do it somewhere in MyDataGrid.cs that it hits after it's done with the OnPaint?
|