Avoiding   when reading values from a GridviewCell?

Posted on 2008-11-11
Last Modified: 2012-05-05
I have a Gridview and I am currently doing:

For Each row As GridViewRow In GridView1.Rows

But because Cells(3) is empty in the gridview, it's giving me back   when I try and build up a unique string using the values from the Gridview.

Is there anyway to avoid this and simply get back an empty string?

I've just put in a .Remove on the string which works but it's a bit awkward, and avoiding the problem would be a far better solution.
Question by:directxBOB
    1 Comment
    LVL 48

    Accepted Solution

    Try to change the column HtmlEncode to False.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now