Guest User

Guest User

  • Tech Writer
  • 254
  • 11.7k

Gridview in vertical

Jun 17 2022 6:37 PM

i want gridview records shows in vertical .

Here is the gridview

 <div class="table-responsive">
                <asp:GridView ID="gvForwardAuth" runat="server" AutoGenerateColumns="false"   class="table table-bordered">
                     <Columns>
                    </Columns>
                    <EmptyDataTemplate>
                        No record Found
                    </EmptyDataTemplate>
                    <Columns>
                        <asp:TemplateField HeaderText="Name">
                            <ItemTemplate>
                                <asp:Label ID="lblname" runat="server" Text='<%# Bind("name") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Designation">
                            <ItemTemplate>
                                <asp:Label ID="lbldesignatio" runat="server" Text='<%# Bind("designation") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Email">
                            <ItemTemplate>
                                <asp:Label ID="lblemail" runat="server" Text='<%# Bind("EmailID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Mobile">
                            <ItemTemplate>
                                <asp:Label ID="lblmobile" runat="server" Text='<%# Bind("Mobileno") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                         <asp:TemplateField HeaderText="State">
                            <ItemTemplate>
                                <asp:Label ID="lblstate" runat="server" Text='<%# Bind("StateCode") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="District">
                            <ItemTemplate>
                                <asp:Label ID="lbldis" runat="server" Text='<%# Bind("DistrictCode") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Office">
                            <ItemTemplate>
                                <asp:Label ID="lbloffice" runat="server" Text='<%# Bind("Office") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="OfficeAddress">
                            <ItemTemplate>
                                <asp:Label ID="lblofcaddress" runat="server" Text='<%# Bind("OfficeAddress") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="OfficeAddress">
                            <ItemTemplate>
                                <asp:Label ID="lblofcaddress" runat="server" Text='<%# Bind("UserSentDate") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Bought Name">
                            <ItemTemplate>
                                <asp:Label ID="lblboughtname" runat="server" Text='<%# Bind("broughtbyname") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Bought Designation">
                            <ItemTemplate>
                                <asp:Label ID="lblboughtdesignation" runat="server" Text='<%# Bind("broughtbydesignation") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Bought Date">
                            <ItemTemplate>
                                <asp:Label ID="lblboughtDate" runat="server" Text='<%# Bind("broughtbydated") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>

 </Columns>
                        </asp:GridView>
                 </div>


Answers (4)