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

The only alternative we can think of is to set the CellViewerManager to the ComboBox, so that the TextAlign property will also operate when the cell is not in edition.

private void Form1_Load( object sender, EventArgs e )

{

    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 );

    ComboBoxViewer comViewer = new ComboBoxViewer( comboBox );

    gridControl1.Columns[ “column1” ].CellEditorManager = comEditor;

    gridControl1.Columns[ “column1” ].CellViewerManager = comViewer;

}

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