문제

I have set a specific format for a column in an Ultragrid. But still the DateTime is in its default format.

//Code

 UltraGridColumn.Header.ToolTipText = Field.FieldDescription
 UltraGridColumn.Format = "d"

Even after the above format is set the grid shows the value in the column as 06/06/2013 02:43PM

But the expected output is 06/06/2013

Why i'm getting this?

도움이 되었습니까?

해결책

Added the column style as DateTime.

//Code

 UltraGridColumn.Style = ColumnStyle.DateTime
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top