PDA

View Full Version : merge grideview



samira6446
یک شنبه 03 شهریور 1392, 16:05 عصر
سلام دوستان
چطور میشه در گریدویو یک ردیف را به دو قسمت تقسیم کنیم و در دو سطر نشان بدیم
منظورم این هست که
در ردیف اول اطلاعات اساسی مربوط به ردیف نشان داده بشه و در ردیف بعدی اطلاعات فرعی اش. مرسی
مثل شکل زیر

javad13
یک شنبه 03 شهریور 1392, 21:54 عصر
خوب ببین باید گراید رو اینطوری توش داده هاتو بچینی :


<asp:GridView ID="gvTablighat1" runat="server" AutoGenerateColumns="False"
CellPadding="4" ForeColor="#333333" GridLines="None" Width="550px"
Font-Names="Tahoma" onrowcommand="gvTablighat1_RowCommand" onpageindexchanging="gvTablighat1_PageIndexChanging"
Font-Size="Small" >
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
<asp:BoundField DataField="Id_No" />
<asp:TemplateField><EditItemTemplate></EditItemTemplate><ItemTemplate><table style="font-family:Tahoma; font-size:small"><tr><td>
<asp:Label ID="lblDate" runat="server" Text='<%# Bind("Datee") %>' ></asp:Label>&nbsp<br />
<asp:Image ID="imgP" runat="server" ImageUrl='<%# Bind("PicUrl") %>' Width="50px" Height="50px" />

</td>
<td> <asp:Label Text='<%# Bind("Name") %>' runat="server" ID="lblName"></asp:Label> </td>



</tr>

<tr><td>


</td></tr>
<tr><td><asp:Label ID="nameAghahidahande" runat="server" Text='<%# Bind("NameAghahidahande") %>' Width="200px" ></asp:Label></td>
<td>
<asp:Label ID="lblT" runat="server" Text="تلفن:"></asp:Label>
<asp:Label ID="lblTell" runat="server" Text='<%#Bind("Tell") %>' ></asp:Label>&nbsp &nbsp</td>

</tr>

</table></ItemTemplate></asp:TemplateField>


<asp:ButtonField CommandName="SelectTabligh" Text="مشاهده جزئیات"
>


<ItemStyle CssClass="link" />

</asp:ButtonField>







</Columns>
<EditRowStyle BackColor="#999999" />
<EmptyDataTemplate>
هیچ آگهی مشابهی درج نشده است.
</EmptyDataTemplate>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#E9E7E2" />
<SortedAscendingHeaderStyle BackColor="#506C8C" />
<SortedDescendingCellStyle BackColor="#FFFDF8" />
<SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>

javad13
یک شنبه 03 شهریور 1392, 21:55 عصر
در ضمن اینو بهت بگم که این یک نمونه هستش و تو باید با اونچیزی که میخوای تغییرات رو توش اعمال کنی تا همونی که میخوای بشه