PC Review


Reply
Thread Tools Rate Thread

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

 
 
Richard
Guest
Posts: n/a
 
      26th Mar 2005
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?





 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using The NativeWindow Class To Draw A GDI Type Circle On Top Of A DataGrid Possibly In The Override OnPaint Richard Microsoft C# .NET 3 30th Mar 2005 03:05 PM
Using The NativeWindow Class To Draw A GDI Type Circle On Top Of A DataGrid Possibly In The Override OnPaint Richard Microsoft VB .NET 3 30th Mar 2005 03:05 PM
Using The NativeWindow Class To Draw A GDI Type Circle On Top Of A DataGrid Possibly In The Override OnPaint Richard Microsoft Dot NET Framework Forms 3 30th Mar 2005 03:05 PM
DataGrid OnPaint/? -How Do I Draw A GDI Type Circle On Top Of A DataGrid Richard Microsoft C# .NET 0 26th Mar 2005 10:33 PM
DataGrid OnPaint/? -How Do I Draw A GDI Type Circle On Top Of A DataGrid Richard Microsoft Dot NET Framework Forms 0 26th Mar 2005 10:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:05 AM.