Hello,
I am trying to format one of the columns in the UltraGrid and for some reasons which I still trying to find out, not sure why the dates are not being formatted.
Here's the date format that I apply during the ultra grid intializeLayout.
e.Layout.Bands[0].Columns[ColumnDate].Format = "dd/MM/yyyy";
I tried even MaskInput and it isnt working as well.
Do you know, if any properties are putting any constraints for the format to not work??
Pls advise.
Hi
What is the DataType of the ColumnDate column? If it's a string, this will not work, because the DotNet framework does not support formatting of strings.
If that's not the problem, then my next guess is that something else in your code is changing the format after you set it. Perhaps you are setting the Format elsewhere in your code, or loading a Layout into the grid which is overwriting this setting.
Well, that probably answers why I got the issue.
Thank you.