?
Solved

Avoiding   when reading values from a GridviewCell?

Posted on 2008-11-11
1
Medium Priority
?
393 Views
Last Modified: 2012-05-05
I have a Gridview and I am currently doing:

For Each row As GridViewRow In GridView1.Rows
...
row.Cells(3).Text
...

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?

[Edit]
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.
0
Comment
Question by:directxBOB
1 Comment
 
LVL 48

Accepted Solution

by:
jpaulino earned 2000 total points
ID: 22931639
Try to change the column HtmlEncode to False.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Screencast - Getting to Know the Pipeline
Suggested Courses

864 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