in Service Manager

How to format properties on custom Service Manager forms

When creating your own custom forms in Service Manager you may want to tweak your ListViews, escpecially when working with dates. For example you may want to hide time information for datetime properties. This is actually pretty simple by using BindingBase.StringFormat property

The below example shows a ListView definition containing two datetime columns both formatted to show date in the format ‘dd.MM.yyyy’
Properties do not necessary have to be bound to a ListVew column. Of course you can use StringFormat also to format text displayed in a TextBox for example.

Write a Comment