Standardowe formatowanie Vs Własne formatowanie w UltragridCells

Próbuję sformatowaćUltragridcell używając następującego kodu i działa dobrze.

//Kod

            DefaultEditorOwnerSettings editorSettings;
            DateTimeEditor datetime_editor;
            editorSettings = new DefaultEditorOwnerSettings()
            editorSettings.DataType = typeof(DateTime);
            editorSettings.MaskInput = "mm/dd/yyyy";
            datetime_editor = new DateTimeEditor(new DefaultEditorOwner(editorSettings));
            e.Row.Cells["DateInfo"].Editor = datetime_editor;

Ale kiedy próbujęformat jak w poniższym kodzie, zawodzi.

//Kod

            DefaultEditorOwnerSettings editorSettings;
            DateTimeEditor datetime_editor;
            editorSettings = new DefaultEditorOwnerSettings()
            editorSettings.DataType = typeof(DateTime);
            editorSettings.MaskInput = "D";
            datetime_editor = new DateTimeEditor(new DefaultEditorOwner(editorSettings));
            e.Row.Cells["DateInfo"].Editor = datetime_editor;

Czy to tylkocustom formatting że zbyt ograniczone typy działają z komórką lub gdzieś się mylę.

Potrzebujesz porady na ten temat.

questionAnswers(1)

yourAnswerToTheQuestion