I am using a wingrid in my application and it binds to a datasource and displays data.The date shows a "01/01/0001" when the specific date column in the table is null..how do I make it display a "customized text like "NA" instead of this defaulted date.
I tried to set he nulltext property in the grid to "NA" please help
This is an issue with your data source, not the grid. You must be using a DataSource with a field that is returning a property of type DateTime. The DateTime data type does not accept nulls.
I am not able to set the value property as it would not accept anything other than a datetime.The text property is readonly even though I have used a ultradatecomboeditor as my editor control.
How do I get around to set the text property ?
Use the initialize row event.
If e.row.cells"(CellwithDate").value = 01/01/0001 then
e.row.cells"(CellwithDate").value ="NA"
end if