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.
Syncfusion Feedback

Align cells to top

Thread ID:

Created:

Updated:

Platform:

Replies:

90994 Oct 29,2009 12:26 AM UTC Oct 30,2009 08:34 PM UTC ASP.NET MVC (Classic) 1
loading
Tags: Grid
Sean Cross
Asked On October 29, 2009 12:26 AM UTC

Is it possible to top align the cell contents?

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

Sean

Balaji M [Syncfusion]
Replied On 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.


CONFIRMATION

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.

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

;