我的问题是关于 ASP.NET GridView 控件。我在 Columns 标记中使用 CommandField,如下所示。
<asp:CommandField ShowEditButton="True" HeaderStyle-Width="40px" UpdateText="Save" ButtonType="Link" HeaderStyle-Wrap="true" ItemStyle-Wrap="true" ItemStyle-Width="40px"/>
如下图所示(单击编辑按钮后)。
正如你所看到的,我试图让取消链接显示一个新行,我的问题是你是怎么做的?如果我将 更改ButtonType="Link"
为ButtonType="Button"
,我会正确渲染,如下所示。
替代文字 http://i38.tinypic.com/2pqopxi.jpg
我已经尝试过谷歌,也许我没有在正确的标签上搜索,但我之前看不到这个标签。