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.

Text alignment in a ComboBox style cell of a GridGroupingControl

Thread ID:





61292 May 23,2007 02:47 AM Feb 26,2013 07:06 AM Windows Forms 3
Tags: Grouping
José Manuel
Asked On May 23, 2007 02:47 AM

Hello, everybody.

I need to force the text of the elements in a ComboBox style cell, when it is popped up, to be left aligned.

I've tried TextAlign property of the Appearance.AnyRecordFieldCell GridStyleInfo, but it doesn't work to me. The always appear right aligned.

Does anyone know how to do it?

Thank you very much in advance.

haneefm [Syncfusion]
Replied On May 23, 2007 11:40 AM

Hi José,

Please set the HorizontalAlignment property to control the behavior of horizontal text alignment in a combobox cell.

this.grid.TableDescriptor.Appearance.AnyRecordFieldCell. HorizontalAlignment = GridHorizontalAlignment.Left;

Best regards,

edgar hernandez
Replied On February 25, 2013 01:01 PM

as I can put the header of a column in a vertical position, I tried this way and do not get


(e.Style.CellType = "ColumnHeaderCell" And e.Style.Text = "Drafting") Then

e.Style.Font.Orientation = 90

   end if

Vinish Kumar K [Syncfusion]
Replied On February 26, 2013 07:06 AM

Hi edgar,


Thank you for your interest in Syncfusion products.



Vertical text align

There are couple of ways to set the Column Header Text Alignment:








private void grid_PrepareViewStyleInfo(object sender,

Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs e)


if((e.ColIndex==1) && (e.RowIndex==0))









If you use BaseStylesMap, it will work for the whole header column. But to make changes to individual cell you need to handle PrepareViewStyleInfo event


We have provided the solution based on your last update. We hope this will helps to you. If this didn’t helps to you please provide any simple sample which is you have used in to reproduce and some more details. We will provide an exact support quickly.

Please let me know if you have any further concerns.

Warm Regards,

Vinish Kumar K


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.