By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,703 Members | 1,400 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,703 IT Pros & Developers. It's quick & easy.

DataGrid OnPaint/? -How Do I Draw A GDI Type Circle On Top Of A DataGrid

P: n/a
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?

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
Nov 21 '05 #2

P: n/a
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.