【问题标题】:How would that be possible to move the Edit button on top of the DetailsView?怎么可能将编辑按钮移到 DetailsView 的顶部?
【发布时间】:2011-10-10 16:30:48
【问题描述】:

我有一个绑定到 SqlDataSource 的 DetailsView。它还有一个 Edit CommandField,出现在自动生成的行的底部。

<asp:DetailsView ID="DetailsView1" runat="server"  
            ForeColor="#333333" GridLines="None" Height="50px" Width="150px" 
            DataSourceID="SqlDataSource2" Caption="System Parameters" CellSpacing="2">           
            <Fields>
                <asp:CommandField ShowEditButton="True"  />
            </Fields>           
</asp:DetailsView> 

有超过 50 列,所以我不想手动添加绑定字段。

如何将“编辑”按钮移动到 DetailsView(第一行)的顶部?

谢谢,

【问题讨论】:

    标签: asp.net html css detailsview


    【解决方案1】:

    似乎有点不清楚,但可能的解决方案是给编辑按钮一个相对位置。然后使用顶部 (-) 或底部 (+) 函数将其移动到顶部。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-11
      • 1970-01-01
      • 2016-11-22
      • 1970-01-01
      • 2019-05-31
      • 1970-01-01
      相关资源
      最近更新 更多