Skip to content

DetailsList - dynamically add and remove columns #305

Discussion options

You must be logged in to vote

Thanks for the suggestion @MizVik.

I figured out that by setting the ColVisible to a blank string the column is excluded and lets me show and hide columns dynamically.

# Setting ColName to an empty string hides the column
ColName: If(
            'Home Screen'.Size >= ScreenSize.Medium,
            "InspectionDateTime",
            ""
        )

I think it would be neater to have an explicit column property called ColVisible. I'll create an issue for an enhancement.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LukasSchauffele
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants