Gustav Brock
Gustav at cactus.dk
Thu Dec 2 04:27:10 CST 2010
Hi Shamil Quite tricky, I must say. So now you have turned all this into a custom control of yours? I've never made such (haven't had the need) but wouldn't this be a good example? /gustav >>> shamil at smsconsulting.spb.ru 01-12-2010 23:58 >>> Hi Gustav -- Google didn't help here. I finally used .Paint event to draw on TopLeftCell, .RowPostPaint to draw on RowHeaders with custom drawing in both cases. And (your google hint) e.PaintHeader(DataGridViewPaintParts.All & ~DataGridViewPaintParts.ContentBackground); to suppress arrow. It works fine now. Thank you. -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 2 ??????? 2010 ?. 1:28 To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] WinForms: What is the best event for custom drawing ona leftmost cell of DataGridView Hi Shamil I guess you have googled what you need to at this moment ... The one strange thing about the row selectors is the default large width. Too wide in my opinion. /gustav