Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 16044

VS 2019 Datagridview selected cell forecolor not to be changed

$
0
0
Hi,

I would like to avoid the selected cell forecolor of DatagridView when it is selected. How it is possible?

Code:

        Me.dgvTable.Columns(19).DefaultCellStyle.ForeColor = Color.Red
        Me.dgvTable.Columns(21).DefaultCellStyle.ForeColor = Color.Blue

Thanks in advance for any support.
Attached Images
 

Viewing all articles
Browse latest Browse all 16044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>