I have a DataGridView
bound to a DataTable
in a DataSet
.
I set all columns of the DataTable
to System.Double
.
I want the last row of the DataGridView
to display "PASS"
or "FAIL"
depending on some condition of the values in that column.
How do I do this?
Ideas:
lastCell = IIF(condition, Double.PositiveInfinity, Double.NegativeInfinity)
Then, apply some conditional formatting (Inf -> PASS, -Inf -> FAIL)
to the final row of the DataGridView.