Multirow grid column definitions

Posted by: phill_dutton on 29 October 2020, 7:01 am EST

  • Posted 29 October 2020, 7:01 am EST

    Is there a way of retrieving the column definitions from a multirow grid?

    In some of our code we have been accessing the column definitions using the grid’s columns property. This doesn’t seem to return all of the columns when using the multirow grid.

  • Posted 30 October 2020, 1:03 am EST

    Hi Phil,

    You will need to use the getBindingColumn method of Multirow to get the bound column of a specified cell. The columns property of the multirow only returns the bottom level columns.

    https://www.grapecity.com/wijmo/api/classes/wijmo_grid_multirow.multirow.html#getbindingcolumn

    Regards,

    Ashwin

  • Posted 30 October 2020, 6:59 am EST

    Hi Ashwin,

    Thanks for your reply. I had already looked at that method, but I’m not sure if it will help with the issue I am trying to resolve.

    We have added some functionality into our software which includes the ability for users to show/hide and resize grid columns. Users can then save their settings if they wish.

    To do this we had been using the columnLayout property on the grid as well as the columns property.

    We allow users to hide/show columns using a right click context menu, the user clicks on the column and its visibility is changed accordingly.

    I’m struggling to work out how this will now work as I need to be able to access column information based solely on the binding/name of a column and then change column settings.

    Edit: Apologies, i’ve just re-read the documentation and it appears that you cannot hide/show columns when using the multirow grid (i missed that when i read it the first time)

  • Posted 2 November 2020, 6:49 am EST

    Hi Phil,

    We are sorry but saving/restoring layouts do not work with Multirow. The multirow is not designed in such a way.

    Many of the functionalities of FlexGrid are not present in multirow, one of which is hiding/showing the columns, as you read already, along with reordering the columns, custom merging, etc.

    ~regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels