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 6007717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:43:15+00:00 2026-05-23T01:43:15+00:00

<asp:GridView ID=grdUploadedFiles runat=server AutoGenerateColumns=False AllowPaging=True PageSize=7 DataKeyNames=ID OnRowEditing=grdUploadedFiles_RowEditing OnRowUpdating=grdUploadedFiles_RowUpdating OnRowCancelingEdit=grdUploadedFiles_RowCancelingEdit OnRowDeleting=grdUploadedFiles_RowDeleting ShowFooter=True ForeColor=Black GridLines=Vertical

  • 0
<asp:GridView ID="grdUploadedFiles" runat="server" AutoGenerateColumns="False" AllowPaging="True"
                    PageSize="7" DataKeyNames="ID" OnRowEditing="grdUploadedFiles_RowEditing" OnRowUpdating="grdUploadedFiles_RowUpdating"
                    OnRowCancelingEdit="grdUploadedFiles_RowCancelingEdit" OnRowDeleting="grdUploadedFiles_RowDeleting"
                    ShowFooter="True" ForeColor="Black" GridLines="Vertical" 
                    Width="439px" BackColor="White" BorderColor="#999999" BorderStyle="Solid" 
                     Font-Size="Small" Font-Names="Arial" CellPadding="3" BorderWidth="1px">
                    <Columns>

                        <asp:TemplateField HeaderText="Type" HeaderStyle-HorizontalAlign="Center" >
                            <ItemTemplate>
                                <asp:Label ID="lblType" runat="server" Text='<%# Bind("FileType") %>'></asp:Label>
                            </ItemTemplate>
                             <asp:CommandField ShowEditButton="True">
                            <ItemStyle/>
                        </asp:CommandField></column></gridview>

I am using above code for my gridview.and i want to give padding to my 1st column.and also i want to give underline to my edit and delete link in my gridview.For that if i give textuderline=’true” on editing it shows Update Delete both a single underline which looks ugly.
Is there any other way?

  • 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-23T01:43:16+00:00Added an answer on May 23, 2026 at 1:43 am

    I will suggest using CSS selectors for styling instead of using control properties (that generates inline styling that are difficult to maintain/change) – assuming you have applied css class “myGridView” to your grid view then use CSS such as

    table.myGridView
    {
      color: black;
      border: solid 1px #999999;
      background-color: white;
      width: 439px;
      font-family: arial;
    }
    
    table.myGridView th
    {
      // style your column headings
    }
    
    table.myGridView td
    {
      // style your cells
      padding: 3px;
    }
    
    table.myGridView tr td:first-child
    {
      // style the first cell in each row
      padding-left: 10px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple gridview <asp:GridView ID=GridView1 runat=server DataKeyNames=OriginatorID AutoGenerateColumns=False AllowPaging=True OnPageIndexChanging=GridView1_PageIndexChanging PageSize=5 OnPreRender=GridView1_PreRender>
I have a gridview like below: <asp:GridView DataKeyNames=TransactionID AllowSorting=True AllowPaging=TrueID=grvBrokerage runat=server AutoGenerateColumns=False CssClass=datatable Width=100%
<asp:GridView ID=GridView2 runat=server AllowPaging=True AutoGenerateColumns=False DataSourceID=opendiarysource Font-Size=Small style=font-size: 8pt; border-top-style: solid; border-right-style: solid; border-left-style:
i have a asp.net webpage with a GridView <asp:GridView ID=grid_view runat=server AllowPaging=True AutoGenerateColumns=False BackColor=White
I have a GridView : <asp:GridView ID=GridView1 runat=server AllowPaging=True GridLines=None HorizontalAlign=Left AutoGenerateColumns=False DataSourceID=SqlDataSource1 onrowcommand=GridView1_RowCommand1>
I have a GridView in my page : <asp:GridView ID=GridView1 runat=server AllowPaging=True BackColor=White AutoGenerateColumns=False
<asp:GridView ID=GridView3 runat=server Width=100% DataSourceID=SDSAllowPaging=True AutoGenerateColumns=False > <Columns> <asp:BoundField DataField=Hint HeaderText=textSortExpression=Hint /> <asp:BoundField DataField=Visi
I have an ASP.Net GridView with properties like so: <asp:GridView ID=grdOrderEntry runat=server AutoGenerateColumns=false ShowFooter=True
Given a GridView control defined like this: <asp:GridView ID=AttachedFilesGridView runat=server AllowSorting=true AllowPaging=false CellPadding=5 AutoGenerateColumns=false
Below is my gridview <asp:GridView ID=GridView1 runat=server AutoGenerateColumns=False EnableModelValidation=True onrowdatabound=GridView1_RowDataBound onrowcommand=GridView1_RowCommand onrowdeleting=GridView1_RowDeleting> <asp:TemplateField HeaderText=Amount

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.