Library Vcl NextSuite 6 Next Standard 6 Reference Classes TNxComboBox6 DisplayMode


Specifies which part of individual item will be displayed.

property DisplayMode: TNxStringsDisplayMode read FDisplayMode write FDisplayMode default dmDefault;

Item inside TStrings list can be separated in 2 parts (by using NameValueSeparator) and then only one part can be actually displayed and other kept for other purposes.


NxComboBox61.DisplayMode := dmValueList;
NxComboBox61.Items.NameValueSeparator := '|';
NxComboBox61.Items.Add('1|Product 1');
NxComboBox61.Items.Add('2|Product 2');
NxComboBox61.Items.Add('3|Product 3');

Sign in