S
Simon Prince
Hi,
I'm trying detect an empty cell in a datagrid when the content is posted
back to the server.
My code is...
Dim vDgi_GridItem As DataGridItem
For Each vDgi_GridItem In oASP_Dgd_Receptions.Items
Response.Write( CType( vDgi_GridItem.Cells(10).Text.trim.length ,
string) )
If vDgi_GridItem.Cells(10).Text.trim.length > 0 then
...OK...
Else
...Not OK...
End If
Next
When the cell contains text, the length works fine, but if the cell is empty
(bound to a field with an empty string) it always returns a length of 6
characters.
Any ideas why ?? Why is the "trim" not emptying these space or whatever is
in there.
Regards
Simon
I'm trying detect an empty cell in a datagrid when the content is posted
back to the server.
My code is...
Dim vDgi_GridItem As DataGridItem
For Each vDgi_GridItem In oASP_Dgd_Receptions.Items
Response.Write( CType( vDgi_GridItem.Cells(10).Text.trim.length ,
string) )
If vDgi_GridItem.Cells(10).Text.trim.length > 0 then
...OK...
Else
...Not OK...
End If
Next
When the cell contains text, the length works fine, but if the cell is empty
(bound to a field with an empty string) it always returns a length of 6
characters.
Any ideas why ?? Why is the "trim" not emptying these space or whatever is
in there.
Regards
Simon