WebGrid and cell white space

2 replies. Last post: March 22, 2012 12:54 PM by Ahmed Dajani
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Ahmed DajaniMember

I'm having issues displaying white space in the grid cells. I saw in a couple of threads that replacing white space with   should do the trick, but it has not worked.

Currently I'm saving values in the database with white space like "My                test value". In the grid it shows up as "My Test Value". 

What's interesting is if I try to edit the cell in Firefox, the white space shows up, but doesn't in IE.

I tried the following code as well, but it hasn't worked:

Private Sub myGrid_InitializeCell(sender As Object, e As ISNet.WebUI.WebGrid.CellEventArgs) Handles myGrid.InitializeCell
        If e.Cell.Column.Name.Equals("Stub") Then
            e.Cell.Column.ColumnType = ISNet.WebUI.WebGrid.ColumnType.Custom
            e.Cell.Value = e.Cell.Value.ToString().Replace(" ", " ")
        End If
End Sub

Any suggestions?

Thanks!


All times are GMT -5. The time now is 11:33 AM.
Previous Next