foreach (IWebTag webTag in WebFormHelper.EnumerateWebTag(webForm)) { if (webTag.Type == WebTagType.Grid || webTag.Type == WebTagType.Column) { } }