Hello,
I have a grid which has a column of dataype "string". Some of the values are NULL and are currently displayed as "null" (see screenshot). How would I influence how nullvalues are displayed ? In this case I want it displayed by string.empty instead.
For the winforms grid there is a property on a column of type Infragistics.Win.UltraWinGrid.Nullable to influence how it is displayed.
Kind regards,
Michael
I am also having same problem with iggrid which has a column of dataype "number" and Some of the values are NULL and are currently displayed as "null". One of the column in the grid has a template column with a href link. If I remove the template, then null fields are displayed as string.empty, else they are displayed as "null".
Regards,Renganathan.R
Hi all,
I had the same problem. There were null values in one column and I'm also using a row template.
Setting the column's data type did all the magic:
gridModel.Columns.Add(new GridColumn { Key = "column name", DataType = "string" });
Maybe this helps anyone.
Markus
Hello all,
I too am experiencing this problem.
I have several null string properties on my grid's model and their grid columns display the string "null" when I specify a cell template for one of the other columns.
Hello Miroslav & Angel,
I've tracked down the "NULL" problem to the first column in the grid. My current first column contains a template with a href link. If I remove the template, then null fields are displayed as string.empty, else they are displayed as "null".
Please find in attachment an example in which you can see the problem. Hopefully you can track down and fix this problem for the future. You can find the columndefinition in the IndexViewModel.cs file.
PS: I am using the latest version. 4.13.1.2217.
Hi Mike,
I have tried this with latest version and using my own MVC sample and can't reproduce it. I have just added in my sample such a column - public string Template and it is working properly. So my advice is just to test with latest version(as Angel proposed). If you encounter again this issue please send us a sample and we can check it on our side.
Thanks,
Miro Hristov