Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ayo Adesina 430 posts 1023 karma points
    Sep 28, 2015 @ 14:08
    Ayo Adesina
    0

    U7 Grid Data Type - How to loop through rows

    I have just taken over an umbraco project that is using U7 Grid Data Type package

    https://our.umbraco.org/projects/backoffice-extensions/u7-grid-data-type

    The problem I have is outputting the values inside the data type.

    var steps = recipeContent.GetProperty("preparationSteps"); 
    
                        foreach (var row in steps)
                        {
    
                        }
    

    error CS1579: foreach statement cannot operate on variables of type 'Umbraco.Core.Models.IPublishedProperty' because 'Umbraco.Core.Models.IPublishedProperty' does not contain a public definition for 'GetEnumerator'

    Any ideas?

Please Sign in or register to post replies

Write your reply to:

Draft