0
kicks
String type data inside gridview : Preserve extra spaces
Very often we face a gridview "bug" that when we are saving the string data in the database just like this
"Sanjeev sanjeev1 sanjeev2 sanjeev123" but when it is shown in the gridview it looks like this
" Sanjeev sanjeev1 sanjeev2 sanjeev123".
GridView eats up the multiple spaces. This is only because of the browser that parses HTML. For a browser “space” is nothing, it only considers the " " as space.