469,626 Members | 1,046 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

Empty gridview cells and checking for empty string

In a RowDataBound event, I want to check if a column is empty (it's a simple
column, not a template with a label in it). I use the following syntax to get
the value from the cell:

s = e.row.cells(1).text

but s returns " " so I can't use String.IsNullOrEmpty(s) function, because
it's not empty.

What can I do?

TIA
Iordanis
Sep 5 '08 #1
1 1633
The post displayed the value returned from the cell as " ", while it is
actually & n b s p; when I see it when debugging.
Sep 5 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by washoetech | last post: by
reply views Thread by Krish | last post: by
1 post views Thread by tfsmag | last post: by
1 post views Thread by Evan M. | last post: by
reply views Thread by pargat.singh | last post: by
2 posts views Thread by Bart | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.