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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

want drop-down cell text aligned left

Thread ID:





33771 Aug 25,2005 07:25 PM UTC Aug 25,2005 07:54 PM UTC WinForms 1
Tags: GridControl
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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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