c# - How to show full contents of a column in GridView while using Dynamic Pages of ASP .NET -


i using list template of dynamic pages. data db model rendering in cases length of data more 22 shows first 22 characters followed ... please check first column of second row

<style>     .gridpadding td {       padding: 8px;     }      .content-wrapper {       max-width: 1024px;     } </style> <div class="dd">   <asp:validationsummary id="validationsummary1" runat="server" enableclientscript="true"     headertext="list of validation errors" />   <asp:dynamicvalidator runat="server" id="gridviewvalidator" controltovalidate="gridview1" display="none" cssclass="ddvalidator" />   <table>     <tr>       <asp:queryablefilterrepeater runat="server" id="filterrepeater">         <itemtemplate>           <td style="text-align: left; font-size: 11px;">             <asp:label runat="server" text='<%# eval("displayname") %>' onprerender="label_prerender" />             <p style="padding: 6px; margin: 0px;">               &nbsp;               <asp:dynamicfilter runat="server" id="dynamicfilter" onfilterchanged="dynamicfilter_filterchanged" />             </p>           </td>         </itemtemplate>       </asp:queryablefilterrepeater>     </tr>   </table> </div> <asp:gridview id="gridview1" runat="server" datasourceid="griddatasource" enablepersistedselection="true"   allowpaging="true" allowsorting="true"   cellpadding="5" cellspacing="2" width="100%" pagesize="25" onrowdatabound="gridview1_rowdatabound" onrowcommand="gridview1_rowcommand">   <headerstyle backcolor="#c7d1d6" borderwidth="1" font-bold="true" />   <rowstyle borderstyle="solid" borderwidth="1" cssclass="gridpadding" />   <columns>     <asp:templatefield headertext="&nbsp; action">       <itemtemplate>         <asp:dynamichyperlink runat="server" action="edit" text="edit" id="hledit" />         &nbsp;         <asp:linkbutton runat="server" commandname="delete" text="delete"     id="hldelete" onclientclick='return confirm("are sure want delete item?");' />         &nbsp;         <%--<asp:dynamichyperlink runat="server" text="details" id="hldetails" />--%>         <asp:linkbutton runat="server" commandname="password" text="changepassword" id="hlpassword" />         <asp:linkbutton runat="server" commandname="disable" text="disable" id="hldisable" commandargument="<%# ((gridviewrow) container).rowindex %>" />       </itemtemplate>     </asp:templatefield>   </columns>   <pagerstyle />   <emptydatatemplate>     there no items in table.   </emptydatatemplate> </asp:gridview> 

i want show full content in cell instead of content ...

html source code rendered in browser

you should able apply

style="width: 100px" 

attribute <td> , make big enough display text way. 100px example. can use percentages like

style="width: 70%" 

if still having issues after try placing <div> tag in <td> , set width of that


Comments