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.
Unfortunately, activation email could not send to your email. Please try again.

want drop-down cell text aligned left

Thread ID:





33771 Aug 25,2005 03:25 PM Aug 25,2005 03:54 PM Windows Forms 1
Tags: GridControl
Asked On August 25, 2005 03:25 PM

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 03:54 PM

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


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.

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.