Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6330685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:54:57+00:00 2026-05-24T17:54:57+00:00

I have seen many people placing table inside a panel like this one. What

  • 0

I have seen many people placing table inside a panel like this one. What are the advantages of doing this?

Is it for vertical scroll-bar that appears on the panel alone?

E.g.:

    <asp:Panel SACID="id1" runat="server" ScrollBars="Vertical" Width="750px" Height="150">

    <asp:GridView  Width="750" Height="150" ID="empiMemberHcidGridView"
                                runat="server" AutoGenerateColumns="False" ShowHeader="false" RowStyle-HorizontalAlign="Center"
                                BorderStyle="None" BorderWidth="0" >
                                <Columns>
                                    <asp:TemplateField ItemStyle-Width="155px" HeaderText="Member Id">
                                        <ItemTemplate>
                                            <asp:Label ID="memberIdLabel" Text='<%# Bind("MemberId") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Left" Width="155px" Wrap="False"></ItemStyle>
                                    </asp:TemplateField>
                                    <asp:TemplateField ItemStyle-Width="155px" HeaderText="Type">
                                        <ItemTemplate>
                                            <asp:Label ID="typeLabel" Text='<%# Bind("InterfaceType") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Left" Width="155px" Wrap="False"></ItemStyle>
                                    </asp:TemplateField>   
  </asp:GridView>         
</asp:Panel>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:54:58+00:00Added an answer on May 24, 2026 at 5:54 pm

    IMO, few reasons for putting a grid into ASP.NET panel can be

    1. Scrolling support (both horizontal & vertical) – so your table can be wide and/or long and still occupies limited area on page
    2. For having some default button (see default button property)
    3. For manipulating at java-script side – for example, you want to show it in a modal popup and your js library needs popup element to be div. Or let’s say that you make an AJAX service call to get update table contents and and quickly refresh by replacing div’s innerHtml etc.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have seen in this forum, that many of the people are doing string
I have seen many programs consisting of structures like the one below typedef struct
I have seen the trend that many people don't like to use exceptions in
I have seen many people in the Scala community advise on avoiding subtyping like
I have seen many people here on stack overflow with this error message and
I have seen many people asking this question and have tried it all (such
I have seen in many times in JavaScript code people add a return true
I have seen many articles about POCO. What is this?
A small - little question. I have seen many application having buttons like following.
i have seen many answers when people ask how to grab and extract the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.