DataGridView Control replacing certain values with a string
I have a datagridview control which uses an array of class objects as its data source.
Is it someway possible to set it up so that certain values in the data are shown differenty in the control.
What I actually want to do is when the value is -1 show either nothing or a dash.
Cheers,
Gareth
[322 byte] By [
aliasx] at [2007-12-24]
absolutely.
One way would be to iterate through each row and each column and then set the cell value or for each row, get the specific column you are after in the cell property, check its value and set its value depending on the current value (-1).
I cant seem to find a specific event that when a row and column are added to do it in there....
I hope this helps in some way