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. Image for the cookie policy date

HeaderText alignment

Hi,

I would want to align some of my headers vertically. How can this be done?

Regards,
Saurabh


3 Replies

RS Rajarajeswari S Syncfusion Team December 15, 2008 11:01 AM UTC

Hi Saurabh,

We can align the text vertically through queycellstyleinfo event like below:

void GridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Web.UI.WebControls.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
{

if (e.TableCellIdentity.TableCellType == Syncfusion.Web.UI.WebControls.Grid.Grouping.GridTableCellType.ColumnHeaderCell)
{
e.Style.VerticalAlignment = Syncfusion.Windows.Forms.Grid.GridVerticalAlignment.Middle;
e.Handled = true;

}
}


This will change the padding of the text. Please try this and let me , if it helps you out.

Regards,
Raji




SS Saurabh Srivastava December 23, 2008 12:26 PM UTC


Hi,

Sorry for not explaining my problem in detail. What I basically want is to change the text direction. By default, its left to right. I want to make it bottom to top (vertical) .



RP Rekha P Syncfusion Team December 26, 2008 07:11 AM UTC

Hi Saurabh,

We regret to let you know that currently we do not provide support to arrange the column text in vertical mode (top to bottom) in GridGroupingControl. Please let us know if you need further assistance.

Thanks,
Rekha


Loader.
Live Chat Icon For mobile
Up arrow icon