diff --git a/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx b/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx index f59534258d..21230a343d 100644 --- a/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx +++ b/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx @@ -25,18 +25,18 @@ - + + -

diff --git a/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx.cs b/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx.cs index 096bb5b724..fef17e6e2e 100644 --- a/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx.cs +++ b/src/Umbraco.Web.UI/umbraco/controls/ContentTypeControlNew.ascx.cs @@ -28,6 +28,32 @@ namespace Umbraco.Web.UI.Umbraco.Controls DataTypeControllerUrl = Url.GetUmbracoApiServiceBaseUrl(x => x.GetById(0)); ContentTypeControllerUrl = Url.GetUmbracoApiServiceBaseUrl(x => x.GetAssignedListViewDataType(0)); } - + + protected void dgTabs_PreRender(object sender, EventArgs e) + { + dgTabs.UseAccessibleHeader = true; //to make sure we render th, not td + + Table table = dgTabs.Controls[0] as Table; + if (table != null && table.Rows.Count > 0) + { + // here we render and + if (dgTabs.ShowHeader) + table.Rows[0].TableSection = TableRowSection.TableHeader; + if (dgTabs.ShowFooter) + table.Rows[table.Rows.Count - 1].TableSection = TableRowSection.TableFooter; + } + } + + protected void dgTabs_ItemDataBound(object sender, DataGridItemEventArgs e) + { + Table table = dgTabs.Controls[0] as Table; + if (table != null && table.Rows.Count > 0) + { + if (dgTabs.ShowHeader) + table.Rows[0].TableSection = TableRowSection.TableHeader; + if (dgTabs.ShowFooter) + table.Rows[table.Rows.Count - 1].TableSection = TableRowSection.TableFooter; + } + } } } \ No newline at end of file