Skip to content

Replies

0
Daniel Roth
Daniel Roth answered on Nov 16, 2017 5:16 PM

Thank you very much for providing the sample project. The approach I used is quite similar to the one in the code sample.

My issue was basically, that the designer code of the UltraGrid assigned to the Format property of the associated UltraGridColumn string.Empty = " " as Format. This format definition always overrid my definition from the editor in InitializeRow event.

As soon as I removed this assignment in the designer code, my solution worked perfectly.

Conclusion:

  • Remove any definitions for the input mask or the format in UltraWinGrid designer for the column
  • Set UseMaskEditorSettings to true in UltraWinGrid designer for the dedicated column
  • Remove legacy assignments for the input mask and the format in designer code of UltraWinGrid
  • Enable custom per row / cell formatting

In order to optimize memory usage I created an editor instance per format and cached it internally.

Code sample attached.