Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2165
Align header for unbound column
posted

How to align header or data cell for an unbound column? I have something like:

@(Html.Infragistics()
.Grid(Model)
.DataBind()
.PrimaryKey("MyKey")
.Columns(pColumn =>
{
pColumn.For(pItem => pItem.MyKey).Hidden(true);
pColumn.For(pItem => pItem.Name).HeaderText("Name);
pColumn.Unbound("View").Width("15%").HeaderText("View")
.Template("<input type='button' onclick='onclickView(${MyKey})' value='Ver' class='delete-button'/>");
})
.ID("MyGrid")
.AutoGenerateColumns(false)
.AutoGenerateLayouts(false)
.Render()
)