Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

C# Forms – remove column header in DataGridView

(sorry for links, not allowed to post images)

I have a 10×10 datagridview with images (black squares are images) in each grid.

I have a weird row at the top with a null image icon at the top.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

https://i.stack.imgur.com/PNnbr.png

I have made inivisble all column and row headers in the properties

https://i.stack.imgur.com/R84v3.png
https://i.stack.imgur.com/xCzHn.png

10 Columns, all the same settings as the one showed:
https://i.stack.imgur.com/Ghxdj.png

The code to add the images in each row.

https://i.stack.imgur.com/xd12A.png

>Solution :

Clear the grid before adding rows:

this.gridMachines.Rows.Clear();
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading