In my _ItemDataBound method, I am checking to see if a BoundColumn item is an empty/null string (i.e. the database field was empty).
I have this:
However, this piece of code never goes inside of the if check, even though I'm staring right at the serialNumbers column and it definitely has some empty fields.
Any help with this would be appreciated.
Thanks,
Stephen
I have this:
| protected void systemsConfigGrid_ItemDataBound( object sender, GridItemEventArgs e ) |
| { |
| if(e.Item is GridDataItem) |
| { |
| GridDataItem dataItem = e.Item as GridDataItem; |
| string authSerialNumber = dataItem["serialNumber"].Text; |
| if(String.IsNullOrEmpty(authSerialNumber)) |
| { |
| //Do something |
| } |
| } |
| } |
However, this piece of code never goes inside of the if check, even though I'm staring right at the serialNumbers column and it definitely has some empty fields.
Any help with this would be appreciated.
Thanks,
Stephen
