Devendra  Kumar

Devendra Kumar

  • NA
  • 517
  • 244.4k

how to show limited characters in gridview columns using asp

Aug 10 2016 7:40 AM

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)