<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