Home Forums WinForms controls Xceed Grid for WinForms Show datetime column as time with FormatSpecifier Reply To: Show datetime column as time with FormatSpecifier

User (Old forums)
Post count: 23064

Hello again

Now I have tryed to use a TextEditor.

Before that I changed my DateTime in the select command to a string formating my datacolumn to HH:mm. And then converting the time format to string.

Then I tryed to show the data and it works fine. But then editing I would like to use the mask 99:99. So I used the TextEditor like this.

Xceed.Grid.Editors.TextEditor txtEdit = new Xceed.Grid.Editors.TextEditor(“99:99”);
gridControl1.Columns[5].CellEditorManager = txtEdit;

I also tryed the mask “##:##”.

But when I use the mask I can’t edit the column in the grid. When removing the mask I can edit the column again. Way is that?

Imported from legacy forums. Posted by Devmann (had 429 views)