I'm making an application with windows forms and a DataGridView but have a little problem here.
I've tried a couple of things but it seems that I can't remove this focus around the Selected Cell (Dotted line).
And I'd like to make it look like this when the row is clicked:
Just simply remove the dotted line all together from DGV. Is it possible?
Row selection is set to FullRowSelect, TabStop is False, MultiSelect is False. I've also tried with e.PaintParts in CellPainting to no avail. Any hints?


StandardTab = false)? If not, you could use SendMessage to sendWM_CHANGEUISTATEwith mask(UISF_HIDEACCEL | UISF_HIDEFOCUS << 16) | UIS_SETin the Enter event of the DGV. This disables focus cues. Otherwise, you need a Custom Control, derived from DataGridView, to override ShowFocusCues (e.g.,protected override bool ShowFocusCues => false;) - JimiStandardTabshould be set totrue(to TAB outside the Control instead of moving the Focus to the next Cell). Try to set this in the Enter event of your DGV:SendMessage([DataGridView].Handle, WM_CHANGEUISTATE, (IntPtr)((3 << 16) | 1), IntPtr.Zero);, whereWM_CHANGEUISTATE = 0x0127(withStandardTab = true). - Jimiusing System.Runtime.InteropServices; [...] [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] internal static extern int SendMessage(IntPtr hWnd, uint uMsg, IntPtr wParam, IntPtr lParam);- Jimi