I have the following in the databound event for the datagrid:
e.Item.Cells(1).Text = e.Item.Cells(2).Text.Trim.Length
When there is text in cells(2), it correctly displays the length.
When there is no text, it always displays the lenth as 6.
I can't figure it out -- the lenght in the source data is 0 for rows that are blank.
Any thing I might not be seeing here?
e.Item.Cells(1).Text = e.Item.Cells(2).Text.Trim.Length
When there is text in cells(2), it correctly displays the length.
When there is no text, it always displays the lenth as 6.
I can't figure it out -- the lenght in the source data is 0 for rows that are blank.
Any thing I might not be seeing here?