Hello,
I have a view with an igHierarchialGrid (with two levels), which is fully defined in the controller. On the view, it is referenced like this:
@Html.Infragistics().Grid(Model.VirtualStoreReceiptGrid)
where VirtualStoreReceiptGrid is the GridModel which is set up on the controller - all features and columns are defined there.
I need to add an unbound column to the second level of the grid, but the only samples i have found is where the columns are added on the view, like so (or similar):
@(Html.Infragistics() .Grid(Model) .ID("grid1") .AutoGenerateColumns(false) .Columns(col => {
col.Unbound("FullName")
.HeaderText("FullName")
.Formula("calcFullName")
.DataType("string");
}) .DataBind()
.Render())
I have tried to find the 'Unbound' property of the column object in the controller, but have had no luck. Is there a way to add the unbound column in the controller, or will i ahve to change the way the grid is defined?
Thanks
Deon
I've found the answer, when defining the columns in the controller, the unbound column is an 'UnboundColumnn' object, not a 'GridColumn' object.
I was looking for an 'Unbound' property or similar on the 'GridColumn' object.
Regards