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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:43:18+00:00 2026-06-01T16:43:18+00:00

I have an asp.net web form. I used Gridview to display the table from

  • 0

I have an asp.net web form. I used Gridview to display the table from a database. There are one of field might have a long no white-space string. Therefore I used wrap-word.
The markup code:

 <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" BorderColor="YellowGreen"
                DataSourceID="SqlDataSource1" AutoGenerateColumns="False" DataKeyNames="ProbId"
                PageSize="30" AutoGenerateEditButton="True" AutoGenerateDeleteButton="True" Visible="true">
                <Columns>
                    <asp:BoundField DataField="ProbId" HeaderText="ProbId" InsertVisible="False" ReadOnly="True"
                        SortExpression="ProbId" />
                    <asp:BoundField DataField="ProbDesc" HeaderText="ProbDesc" SortExpression="ProbDesc" />
                    <asp:TemplateField HeaderText="ABCD" ItemStyle-Width="75px" SortExpression="ABCD">
                        <ItemTemplate>
                            <div style="width: 75px; overflow: hidden; white-space: nowrap; word-wrap: break-word;">
                                <%# Eval("ABCD")%>
                                ></div>
                        </ItemTemplate>
                    </asp:TemplateField>

Now the wrap-word does work, however the displayed context is wrong. Each string was add a “>” at the last.
Please see the image:
image

You see that ‘648.04’ becomes ‘648.04’ >

“None” becomes “None >”.

Thanks for help.

  • 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-06-01T16:43:19+00:00Added an answer on June 1, 2026 at 4:43 pm

    Look at your ItemTemplate:

    <ItemTemplate>
        <div style="width: 75px; overflow: hidden; white-space: nowrap; word-wrap: break-word;">
            <%# Eval("ABCD")%>
        ></div>
    </ItemTemplate>
    

    There’s an extra > just before the div closing tag.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using web forms I know that you can only have one ASP.NET form on
I have an ASP.NET web form on which I'm displaying a list of database
I have an asp.net web form (c#, .NET framework 3.5) that returns to itself
I have a asp.net web form which will submit information to come as emails.
I have a pretty simple ASP.NET Web Form that looks a bit like the
If I have the following in an ASP.NET Web Form: <asp:TextBox runat=server ID=tbxUser/> and
I have created a great stand-alone web form in asp.net utilizing many jQuery features
I have an ASP.NET web form application that on the server side I need
I have an ASP.NET Webform and inside the form I have an input type
I have a jQuery Autocomplete field on an ASP.Net Webform and everything has been

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.