Home Forums WinForms controls Xceed Grid for WinForms Displaying the END of a partial cell value instead of beginning Reply To: Displaying the END of a partial cell value instead of beginning

User (Old forums)
Member
Post count: 23064

BTW, you can hide the DropDownButton in view mode by creating a Viewer different from the Editor.

e.g.:

private void Form1_Load( object sender, EventArgs e )

{

    //Editor

    WinComboBox comboBox = new WinComboBox( EnhancedBorderStyle.None );

    comboBox.TextBoxArea.TextAlign = System.Windows.Forms.

HorizontalAlignment.Right;

    comboBox.Items.Add(

“DP000000000123” );

    comboBox.Items.Add(

“DP000000000456” );

    ComboBoxEditor comEditor = new ComboBoxEditor( comboBox );

    gridControl1.Columns[

“column1” ].CellEditorManager = comEditor;

    //Viewer

    WinComboBox comboBox1 = new WinComboBox( EnhancedBorderStyle.None );

    comboBox1.TextBoxArea.TextAlign = System.Windows.Forms.

HorizontalAlignment.Right;

    comboBox1.DropDownButton.Visible =

false;

    comboBox1.Items.Add(

“DP000000000123” );

    comboBox1.Items.Add(

“DP000000000456” );

    ComboBoxViewer comViewer = new ComboBoxViewer( comboBox1 );

    gridControl1.Columns[

“column1” ].CellViewerManager = comViewer;

}

You can do the same if your ComboBox’ are bound.

 

Imported from legacy forums. Posted by André (had 759 views)