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 419 posts 1001 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?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies