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.

Align cells to top

Thread ID:





90994 Oct 28,2009 08:26 PM Oct 30,2009 04:34 PM ASP.NET MVC (Classic) 1
Tags: Grid
Sean Cross
Asked On October 28, 2009 08:26 PM

Is it possible to top align the cell contents?

args.Style.VerticalAlignment = Syncfusion.Windows.Forms.Grid.GridVerticalAlignment.Top;
doesn't work


Balaji M [Syncfusion]
Replied On October 30, 2009 04:34 PM

Hi Sean,

Thank you for your interest in Syncfusion products.

We regret to let you know that currently, we don't support GridVerticalAlignment.Top property. But we can achieve this text alignment through cssClass property. This feature has been implemented and will be available with our Syncfusion Essential Studio 2009 volume 4.

Our Volume 4 RC,which has been released yesterday has included this feature.

Could you please try this version?

We have published the Essential Studio version 2009 Volume 4 RC in the following forum :

Details :

CssClass - Gets or set the Css Class name to the Column.

Refer the below code snippet, which illustrates this,


<%=Html.Grid("Grid1", "GridModel", column => {
column.Add(c => c.CustomerID).HeaderText("CustomerID").CssClass("CustomCell");
column.Add(c => c.EmployeeID).HeaderText("Employee ID");
column.Add(c => c.OrderID).HeaderText("Order ID");
column.Add(c => c.OrderDate).HeaderText("Order Date");
column.Add(c => c.ShipCity).HeaderText("ShipCity");
column.Add(c => c.ShipCountry).HeaderText("ShipCountry");

Please refer the sample from the below link.


Please let me know if you have any concerns.

M. Balaji.


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.