We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

want drop-down cell text aligned left

Thread ID:

Created:

Updated:

Platform:

Replies:

33771 Aug 25,2005 07:25 PM UTC Aug 25,2005 07:54 PM UTC WinForms 1
loading
Tags: GridControl
Lan
Asked On August 25, 2005 07:25 PM UTC

Hello, I use following code to set column of GGC as drop-down cbobox. But it doesn''t work, the cell text always left-aligned. Please see the "Func" column in attached image. any idea? this.gdBase.TableDescriptor.Columns[ColumnName].Appearance.AnyRecordFieldCell.CellType ="ComboBox"; this.gdBase.TableDescriptor.Columns[ColumnName].Appearance.AnyRecordFieldCell.DataSource=dvLookUp;//tbLookup; this.gdBase.TableDescriptor.Columns[ColumnName].Appearance.AnyRecordFieldCell.DisplayMember=lookup_field_val; this.gdBase.TableDescriptor.Columns[ColumnName].Appearance.AnyRecordFieldCell.ValueMember=lookup_field_code; this.gdBase.TableDescriptor.Columns[ColumnName].Appearance.AnyRecordFieldCell.ShowButtons=GridShowButtons.ShowCurrentCell; this.gdBase.TableDescriptor.Columns[ColumnName].Appearance.AnyRecordFieldCell.TextAlign=GridTextAlign.Left; sample_5763.zip

Administrator [Syncfusion]
Replied On August 25, 2005 07:54 PM UTC

Don''t use AnyRecordFieldCell.TextAlign. Instead try AnyRecordFieldCell.HorizontalAlignment.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;