asp.net - Change the appearance of gridview -
i have news table in db contain (id,title,body) fields.
want display these news news.aspx page.
can use grid view show them, want change grid view's appearance,like below image.how can it?or idea this.

thanks in advance.
you can use listview implement follows:
<asp:listview id="lvnewscontent" runat="server"> <layouttemplate> <div style="border:1px solid black; border-top:2px solid black; text-align:center; width:200px; height:60px;"> <%#eval("newstitle") %> </div> <div style="border:1px solid black; width:200px; text-align:center; display:block;"> <div style="margin-right:auto; margin-left:auto; text-align:center;"> <%#eval("newsdetail") %> </div> <div style="width:60px; height:20px; float:right; margin-right:20px;"> more info </div> </div> </layouttemplate> </asp:listview> after set data source of listview , bind it.
Comments
Post a Comment