This question is locked. New answers and comments are not allowed.
Hi there,
My question today is how to avoid the "null" text on columns that are nullable?
Long story short I have a model that looks like this:
| Public Class PriProcesso |
| Property Produto As String |
| Property NumeroProcesso As Long |
| Property DataAbertura As DateTime? |
| End Class |
DataAbertura can assume "nothing" as a value.
When I bind it as a column to the grid like this:
| gridBuilder.Columns(Sub(c) c.Bound(Function(b) b.DataAbertura).Format("{0:yyyy-MM-dd}").Width(80).Title("Aberto em")) |
It all works great.... when the field has a value. When its "nothing", the grid shows "null" as the column value.
Is there a way to avoid this? Nullable properties should not come up as "null" when it does not have a value...it should com up empty instead as this is what we intent to show users 90% of the time.
Cheers
Joao Cardoso