String type data inside gridview : Preserve extra spaces(sanjevsharma.blogspot.com)
submitted by
sanjev.sharma(579) 3 years, 3 months ago
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.
|category: ASP.NET
|Views: 18
tags:
ASP.NET another
Everyones tags:
Your Tags: