Aqui vai:
<asp:Panel ID="Panel_gridview_project" runat="server" HorizontalAlign="Center">
<asp:GridView ID="GridView_project" runat="server" HorizontalAlign="Center" BackColor="White"
BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black"
AutoGenerateDeleteButton="True" ShowFooter="True" AutoGenerateColumns="False"
AllowPaging="True" OnRowDeleting="gridview_RowDeleting"
OnRowDataBound="Grid_RowDataBound" DataKeyNames="project"
Font-Size="Smaller">
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:TemplateField HeaderText="Road map of new products">
<HeaderTemplate>
Road map of new products<br />
<asp:DropDownList ID="DropDownList0" runat="server" AppendDataBoundItems="true"
ondblclick="this.size=1;" onfocusout="this.size=1;"
onmousedown="this.size=5;">
<asp:ListItem>Green</asp:ListItem>
<asp:ListItem>Yellow</asp:ListItem>
<asp:ListItem>Red</asp:ListItem>
</asp:DropDownList>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="Label0" Text='<%# Eval("project") %>'
runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Time scheduling" InsertVisible="False">
<HeaderTemplate>
Time scheduling<br />
<asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="true"
ondblclick="this.size=1;" onfocusout="this.size=1;"
onmousedown="this.size=5;">
<asp:ListItem>Green</asp:ListItem>
<asp:ListItem>Yellow</asp:ListItem>
<asp:ListItem>Red</asp:ListItem>
</asp:DropDownList>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("time_scheduling") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="B-Sample (Plant)">
<HeaderTemplate>
B-Sample (Plant)<br />
<asp:DropDownList ID="DropDownList2" runat="server" AppendDataBoundItems="true"
ondblclick="this.size=1;" onfocusout="this.size=1;"
onmousedown="this.size=5;">
<asp:ListItem>Green</asp:ListItem>
<asp:ListItem>Yellow</asp:ListItem>
<asp:ListItem>Red</asp:ListItem>
</asp:DropDownList>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Eval("b_sample") %>'></asp:Label>
<br />
<asp:Label ID="Label2_2" runat="server" Height="16px"
style="text-align: center" Text='<%# Eval("top3_b_sample") %>' Width="90px"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="QA1">
<HeaderTemplate>
QA1<br />
<asp:DropDownList ID="DropDownList3" runat="server" AppendDataBoundItems="true"
ondblclick="this.size=1;" onfocusout="this.size=1;" onmousedown="this.size=5;">
</asp:DropDownList>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Eval("qa1") %>'></asp:Label>
<br />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Design Validation">
<HeaderTemplate>
Design Validation<br />
<asp:DropDownList ID="DropDownList4" runat="server" AppendDataBoundItems="true"
ondblclick="this.size=1;" onfocusout="this.size=1;"
onmousedown="this.size=5;">
<asp:ListItem>Green</asp:ListItem>
<asp:ListItem>Yellow</asp:ListItem>
<asp:ListItem>Red</asp:ListItem>
</asp:DropDownList>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%# Eval("design_validation") %>'></asp:Label>
<br />
<asp:Label ID="Label4_2" runat="server" style="text-align: center"
Text='<%# Eval("top3_design_validation") %>' Width="90px"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Design Freeze - Mechanical parts">
<HeaderTemplate>
Design Freeze - Mechanical parts<br />
<asp:DropDownList ID="DropDownList5" runat="server" AppendDataBoundItems="true"
ondblclick="this.size=1;" onfocusout="this.size=1;"
onmousedown="this.size=5;">
<asp:ListItem>Green</asp:ListItem>
<asp:ListItem>Yellow</asp:ListItem>
<asp:ListItem>Red</asp:ListItem>
</asp:DropDownList>
</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="Label5" runat="server" Text='<%# Eval("design_mechanical_parts") %>'></asp:Label>
<br />
<asp:Label ID="Label5_2" runat="server" style="text-align: center"
Text='<%# Eval("top3_design_mechanical_parts") %>' Width="90px"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#565656" />
<HeaderStyle BackColor="#565656" ForeColor="White" HorizontalAlign="Center"
VerticalAlign="Middle" />
<PagerSettings Mode="NextPrevious" />
<PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Center" />
<RowStyle BackColor="White" />
<SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#FBFBF2" />
<SortedAscendingHeaderStyle BackColor="#848384" />
<SortedDescendingCellStyle BackColor="#EAEAD3" />
<SortedDescendingHeaderStyle BackColor="#575357" />
</asp:GridView>
</asp:Panel>
A tabela que desenhei acima nada tem a ver com esta, foi um mero exemplo da estrutura que pretendo.
Por exemplo eu quero a Label2 a aparecer numa linha juntamente com o resto dos dados nessa linha e a label2_2 a aparecer por baixo da label2 noutra linha com o resto dos dados das label xpto_2 nessa linha.
↧