繁体   English   中英

ASP.NET Webform-如何将FormView和GridView彼此相邻放置

[英]ASP.NET Webform - How to place FormView and GridView next to each other

在我的Web窗体中,我有一个gridview和一个formview。 formview始终显示在gridview下。 如何将Formview移到gridview的右侧?

GridView和FormView呈现为tables ,因此一种方法是使用一个变形表并排放置。 当然,有些人会说表不是现代设计,最好使用div ...好吧,这只是一个快速的解决方案。

<table>
    <tr>
        <td>
            <asp:GridView></asp:GridView>    
        </td>
        <td>
            <asp:FormView></asp:FormView>
        </td>
    </tr>
</table>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM