By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,786 Members | 1,131 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,786 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 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Nov 17 '05 #2

P: n/a
Nov 17 '05 #3

P: n/a
Nov 17 '05 #4

P: n/a
Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.