Align cells to top

Is it possible to top align the cell contents?

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

Sean

1 Reply

BM Balaji M Syncfusion Team October 30, 2009 08:34 PM UTC

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 :
http://www.syncfusion.com/support/forums/general/91019/essential-studio-2009-vol4-rc-v74015-available-for-download


Details :

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

Refer the below code snippet, which illustrates this,

[View]



<%=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.

http://files.syncfusion.com/support/grid_mvc/Incidents/F90994/MVC_GridSample.zip

Please let me know if you have any concerns.

Regards,
M. Balaji.


Loader.
Up arrow icon