I'm attempting to setup a gridview in which one of the columns is a date-only field. In order to achieve this, I'm using a gridViewMaskBox. The below code shows a correct 00:00 AM on edit, but after the cell is no longer being edited, the field shows date and time. Setting a FormatString for the column does not change this behavior. Any help or suggestions?
gridViewMaskBoxColumn1.EnableExpressionEditor = false;
gridViewMaskBoxColumn1.FieldName = "From";
//gridViewMaskBoxColumn1.FormatString = "{0:hh:mm tt}";
gridViewMaskBoxColumn1.HeaderText = "From";
gridViewMaskBoxColumn1.Mask = "t";
gridViewMaskBoxColumn1.MaskType = Telerik.WinControls.UI.MaskType.DateTime;
gridViewMaskBoxColumn1.Name = "From";
gridViewMaskBoxColumn1.Width = 94;
gridViewMaskBoxColumn1.EnableExpressionEditor = false;
gridViewMaskBoxColumn1.FieldName = "From";
//gridViewMaskBoxColumn1.FormatString = "{0:hh:mm tt}";
gridViewMaskBoxColumn1.HeaderText = "From";
gridViewMaskBoxColumn1.Mask = "t";
gridViewMaskBoxColumn1.MaskType = Telerik.WinControls.UI.MaskType.DateTime;
gridViewMaskBoxColumn1.Name = "From";
gridViewMaskBoxColumn1.Width = 94;