• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 403
  • Last Modified:

Avoiding   when reading values from a GridviewCell?

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.
1 Solution
Jorge PaulinoIT Pro/DeveloperCommented:
Try to change the column HtmlEncode to False.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now