hi !!
how do i top align the content of a TemplateDataField ?
ive tried everything but its always centered.
<ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGridOversikt" runat="server" AutoGenerateBands="false" AutoGenerateColumns="false"
EnableAjax="true" InitialDataBindDepth="-1" InitialExpandDepth="-1" AjaxIndicator-ImageUrl="~/ig_res/ajax-loader.gif"
Height="100%" Width="758px" DataKeyFields="PK" ShowHeader="false" OnInitializeRow="Grid_InitRow" DataSourceID="" >
<Columns>
<ig:BoundDataField Key="Dag" Header-Text="" DataFieldName="DAG" CssClass="Deloverskrift" />
</Columns>
<Bands>
<ig:Band Key="viewChild" AutoGenerateColumns="false" DataMember="view_Child" >
<ig:TemplateDataField Key="FIELD1" Width="50px" >
<ItemTemplate>
<asp:Label ID="del11" ReadOnly="true" runat="server" Width="50px" CssClass="Deloverskrift" /><br />
<%
-- <asp:Label ID="del12" ReadOnly="true" runat="server" />
<asp:Label ID="del13" ReadOnly="true" runat="server" />
--
%> </ItemTemplate>
</ig:TemplateDataField>
<ig:TemplateDataField Key="FIELD2" Width="500px">
<asp:Label ID="del21" ReadOnly="true" runat="server" CssClass="RadInnhold" /><br />
<asp:Label ID="del22A" ReadOnly="true" runat="server" CssClass="RadInnhold" />
<asp:HyperLink ID="del22" ReadOnly="true" runat="server" CssClass="RadInnhold" />
<asp:Panel ID="del23" ReadOnly="true" runat="server" CssClass="RadInnhold" />
<asp:HyperLink ID="del24" ReadOnly="true" runat="server" CssClass="RadInnhold" />
</ItemTemplate>
<ig:TemplateDataField Key="FIELD3" Width="150px">
<asp:Label ID="del31" ReadOnly="true" runat="server" CssClass="RadInnhold" /><br />
<asp:Label ID="del32" ReadOnly="true" runat="server" CssClass="RadInnhold" />
<asp:Panel ID="del33" ReadOnly="true" runat="server" CssClass="RadInnhold" />
<Behaviors>
<ig:Sorting SortingMode="Single" Enabled="true" />
</Behaviors>
</ig:Band>
</Bands>
</ig:WebHierarchicalDataGrid>
-->
You can set the CSS class on the templatedatafield:
<ig:TemplateDataField Key="Freight" CssClass="igg_AlignColumn">
And set the style as follows to affect the template area:
tbody tr td.igg_AlignColumn { vertical-align:top; }
Hope this helps
-Taz.