Is there any way to make some cells invisible in a DataGridView ?
Basically I am making an invoice application in which certain cells have no meaning when a particular setting is used.
I have currently made those cells ReadOnly with no value but it will be cool if they could become invisible/transparent.
Any free 3rd party Control will also do !
Akshay, think a moment, what does it mean to hide a cell in a grid/table?
you “could” add a whole row or column eventually, a bit like excel allows you to do, but a single cell, what is the expected behaviour?
having a cell set as invisible will still render a rectangle in that location, white over white or black over whatever other combination of back/fore ground colors, you will still see at least a “hole” in the grid.
I don’t know a specific way to do it with any grid, setting the cell as read only and clearing the content should help enough, if you really need other things eventually your grid is not well thought for the use you are doing of it, aka should have less rows or columns or should be changed in having multiple smaller grids in the page.