DataGridView Behavior

  • Thread starter Thread starter Developer Dude
  • Start date Start date
D

Developer Dude

Guest
Hi:

I have several dgvs in an app that I am working on. With some of them you have to arrow down twice

to move to the second row while others only require one arrow down. The properties are set the same

way for all dgvs. I can't figure out why this happens. Here are the settings that I am using, all others

have default values.

.DefaultCellStyle.BackColor = Color.Cyan
.DefaultCellStyle.ForeColor = Color.Black
.DefaultCellStyle.SelectionBackColor = Color.LightSkyBlue
.DefaultCellStyle.SelectionForeColor = Color.Black
.ReadOnly = True
.ScrollBars = ScrollBars.Vertical
.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect

Does anyone have any suggestions? Thanks.

Continue reading...
 
Back
Top