vb.net - How to resize DataGrid in asp.net -
suppose i've datagrid this:
<asp:panel id="paneldgv" runat="server" height="100%" scrollbars="none" width="100%"> <asp:gridview id="dgv" runat="server" autogeneratecolumns="false" gridlines="none" allowpaging="true" pagesize="30" cssclass="mgrid" pagerstyle-cssclass="pgr" alternatingrowstyle-cssclass="alt"> <columns> <asp:boundfield datafield="projectcode" headertext="project code" /> <asp:boundfield datafield="projectname" headertext="project name" /> <asp:buttonfield buttontype="image" imageurl="../support/image/edit.png" itemstyle-horizontalalign="center" commandname="cmdsearch" headertext="edit"> <itemstyle horizontalalign="center"></itemstyle> </asp:buttonfield> </columns> <pagerstyle cssclass="pgr"></pagerstyle> <alternatingrowstyle cssclass="alt"></alternatingrowstyle> </asp:gridview> </asp:panel> is there way resize datagrid automatically fill webpage windows desktop picture feature? when resize page, datagrid resized automatically. thank you.
gridview renders ordinary html table. should style it.
for example add stlyle:
.mgrid { width:100%; } or gridview has property maps html table width, can set 100% too.
Comments
Post a Comment