A
Alex Shirley
Hi
I'm just wondering why the following behavour is happens:
If I try to get a text value from a datagrid (i.e.
e.Item.Cells(x).Text), and that value is blank, I will get " "
instead of a blank value.
I assume this is behaviour by design? But I wonder why this is the
case? I'm just trying to get some understanding here. I've written a
tiny function (below) to get round it, but I'm curious about why this
value is being returned.
Cheers
Alex
Public Function checkdatagridblank(ByVal thestring As String)
If thestring <> " " Then
Return thestring
Else
Return ""
End If
End Function
I'm just wondering why the following behavour is happens:
If I try to get a text value from a datagrid (i.e.
e.Item.Cells(x).Text), and that value is blank, I will get " "
instead of a blank value.
I assume this is behaviour by design? But I wonder why this is the
case? I'm just trying to get some understanding here. I've written a
tiny function (below) to get round it, but I'm curious about why this
value is being returned.
Cheers
Alex
Public Function checkdatagridblank(ByVal thestring As String)
If thestring <> " " Then
Return thestring
Else
Return ""
End If
End Function