I reviewed the posts but none of the solution provides the answer. I have defined a nullable date in my class, but UltraWinGrid continues to display 01/01/0001 despite setting NullText to empty string. I saw a reference to set Text to empty string but Text is a read only property.
VS2012 SP1 .NET 4, WinGrid 12.1.20121.1001
Private m_Date As Nullable(Of Date) (public property for Get)
.Columns("CommitteeDate").Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Date .Columns("CommitteeDate").Nullable = Nullable.Nothing .Columns("CommitteeDate").NullText = "" .Columns("CommitteeDate").MinWidth = 70 'issue w/Date type column auto sizing
Private Sub UltraGrid1_InitializeRow(sender As Object, e As InitializeRowEventArgs) Handles UltraGrid1.InitializeRow If CDate(e.Row.Cells("CommitteeDate").Value) = DateTime.MinValue Then e.Row.Cells("CommitteeDate").Value = DBNull.Value End If End Sub
Thanks! After comparing the difference I found an issue where the New method of date parameter passing had (as Date) instead of (as Nullable(of Date)), that was the issue.
I do not have to use these:
.Columns("MyDate").Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Date .Columns("MyDate").Nullable = Nullable.Null .Columns("MyDate").NullText = ""
Hi,
I tried this out in a small sample, but I can't reproduce the issue. I have attached my sample here so you can take a look and see if you get the same results.
If so, then there must be something different about your real application that is causing the issue.
If not, then there must be a problem with the version of NetAdvantage you are using, in which case you can solve it by getting the latest service release.
How to get the latest service release - Infragistics Community