3
Answers

how to show limited characters in gridview columns using asp

how to show limited characters in gridview columns using asp.net 

but when click view details then it show full  
like:  how to show limited characters in......... view details
 
then it show like:

how to show limited characters in gridview columns using asp.net

and i will be use like:
<asp:Label ID="lbl_productName" runat="server" Text='<%#Eval("query").ToString().Length > 10 ? Eval("query").ToString().Substring(0, 10)+"..." : Eval("query")%>'></asp:Label>
 
it hide text but when click details it's not visible dotted text
 
only show 10 charecters 
 
 
Answers (3)
1
Vinay Singh

Vinay Singh

NA 5.9k 126.1k 8y
check the link
http://www.articlemirror.in/2015/06/aspnet-show-limited-characters-in-gridview-column-csharp-vb-sqlserver.html
http://www.aspdotnet-suresh.com/2010/12/how-to-show-limited-characters-in.html
0
Midhun T P

Midhun T P

NA 19.7k 281.1k 8y
Hi,
For that you have to save the full text into any hidden fields or a hidden label itself and show it while clicking view more.
0
Devendra  Kumar

Devendra Kumar

NA 500 60.3k 8y
but when click details then not show full text it show only given limited text