首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >并排渲染的CommandField ImageButtons

并排渲染的CommandField ImageButtons
EN

Stack Overflow用户
提问于 2018-10-01 05:06:25
回答 1查看 101关注 0票数 0

无法进行更新和取消ImageButtons以在GridView中并排呈现,无论我设置多宽的列,它们在此编辑CommandField中总是堆叠在彼此的顶部:

代码语言:javascript
复制
<asp:CommandField ButtonType="Image" ShowEditButton="true" HeaderText="Edit" EditImageUrl="~/i/BlueButton.jpg" ControlStyle-CssClass="center-block"
    CancelImageUrl="~/i/Cancel.jpg" UpdateImageUrl="~/i/Update.jpg" >
    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Height="25px" Width="100px" />
</asp:CommandField>

我尝试了许多方法都是徒劳的;例如,将命令字段包装在div中-失败了,可能是因为我试图在GridView中这样做;找不到可以工作的对齐规范的组合。

EN

回答 1

Stack Overflow用户

发布于 2018-10-04 00:45:32

谢谢你,马丁!只需删除ControlStyle-CssClass="center-block“即可。使控件居中是在ItemStyle中处理的。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52582166

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档