Link to home
Start Free TrialLog in
Avatar of directxBOB
directxBOBFlag for Ireland

asked on

Avoiding   when reading values from a GridviewCell?

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.
ASKER CERTIFIED SOLUTION
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial