I have a DataGridView with a lot of rows and some cell value types are decimal. In some of the rows I need that the cell with decimal type is empty.
For example:
If the cell value is 0 then leave the cell empty not 0.
Is it possible to do? If yes, then how?
Thanks in advance.
I have a DataGridView with a lot of rows and some cell value types
Share
Handle the
CellFormattingevent. You’re going to get a value passed in from the eventargsthat represents the unformatted value.