Is there any way to fill DataGridView cell with HatchPattern i C#?
I tried using dataGridView1.Rows[n].Cells[m].Style, but this way i can only change backcolor of the cell.
Is there any way to fill DataGridView cell with HatchPattern i C#?
I tried using dataGridView1.Rows[n].Cells[m].Style, but this way i can only change backcolor of the cell.
Copyright © 2021 Jogjafile Inc.
You need to owner-draw the cell, i.e. code the
CellPainting
event..Note that I made the hatch colors semi-transparent for better readability of the content. I also check for just one of them for the cell being selected..