Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Empty gridview cells and checking for empty string

Reply
Thread Tools

Empty gridview cells and checking for empty string

 
 
Savvoulidis Iordanis
Guest
Posts: n/a
 
      09-04-2008
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
 
Reply With Quote
 
 
 
 
Savvoulidis Iordanis
Guest
Posts: n/a
 
      09-05-2008
The post displayed the value returned from the cell as " ", while it is
actually & n b s p; when I see it when debugging.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridview selecteditem.cells(x) - empty become " " K B ASP .Net 1 02-21-2008 04:14 PM
convert yyyymmdd text cells into date cells =?Utf-8?B?ZF9jYW1wZWxvQGhvdG1haWwuY29t?= Microsoft Certification 2 11-22-2006 04:52 PM
Writing to Cells in the Detailsview Insertmode makes cells uneditable. SixStringSlaya@gmail.com ASP .Net 0 02-28-2006 10:23 PM
GridView Empty Cells Krish ASP .Net Datagrid Control 0 01-11-2006 10:25 PM
GridView Empty Cells Krish ASP .Net 0 01-11-2006 10:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57