// Please use the following namespace
// using System.Windows.Forms;
// using GrapeCity.Win.Editors;
public void SetTextFormat()
{
// Creates an instance of a GcComboBox control.
GcComboBox gcComboBox1 = new GcComboBox();
// Sets the TextBoxStyle to show both the image and the text.
// If sets it to ImageOnly, text will not be displayed.
gcComboBox1.TextBoxStyle = TextBoxStyle.Both;
// Sets the TextFormat to "[0] (Tel) [2]".
// And the text will display the first colum and the 3rd colum's text with the Tel string in the middle of the text.
gcComboBox1.TextFormat = "[0] (Tel) [2]";
}
' Please use the following namespace
' Imports System.Windows.Forms;
' Imports GrapeCity.Win.Editors;
Public Sub SetTextFormat()
' Creates an instance of a GcComboBox control.
Dim gcComboBox1 As New GcComboBox()
' Sets the TextBoxStyle to show both the image and the text.
' If sets it to ImageOnly, text will not be displayed.
gcComboBox1.TextBoxStyle = TextBoxStyle.Both
' Sets the TextFormat to "[0] (Tel) [2]".
' And the text will display the first colum and the 3rd colum's text with the Tel string in the middle of the text.
gcComboBox1.TextFormat = "[0] (Tel) [2]"
End Sub