0
我试图在传统的ASP.net应用程序的这个数据网格中的每一行添加几个按钮。ASP.net datagrid,添加两个buttoncolumns,只有一个显示出来
下面的代码:
<asp:datagrid id="dgView" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 0px" runat="server" Width="100%" BorderColor="Black" AllowPaging="True" PageSize="8">
<AlternatingItemStyle Font-Size="XX-Small" Font-Names="Verdana" HorizontalAlign="Center" VerticalAlign="Bottom">
</AlternatingItemStyle>
<ItemStyle Font-Size="XX-Small" Font-Names="Verdana" Wrap="False" HorizontalAlign="Center" Height="20px" ForeColor="Black" VerticalAlign="Bottom" BackColor="White"></ItemStyle>
<HeaderStyle Font-Size="X-Small" Font-Names="Verdana" Font-Bold="True" HorizontalAlign="Center" Height="20px" ForeColor="#990033" VerticalAlign="Middle" BackColor="LightGray"></HeaderStyle>
<PagerStyle Height="20px" Mode="NumericPages"></PagerStyle>
<Columns>
<asp:ButtonColumn ButtonType="PushButton" Text="Reprocess" CommandName="Reprocess">
<ItemStyle Font-Size="XX-Small" Font-Bold="True" ForeColor="Blue"></ItemStyle>
</asp:ButtonColumn>
<asp:ButtonColumn ButtonType="PushButton" Text="Suppress" CommandName="Suppress">
<ItemStyle Font-Size="XX-Small" Font-Bold="True" ForeColor="Blue"></ItemStyle>
</asp:ButtonColumn>
</Columns>
</asp:datagrid>
这里是造成电网: alt text http://img255.imageshack.us/img255/3442/gridview.png
列的其余部分来自于数据绑定的记录。除了无论如何添加这个按钮,我都不想花费任何时间,我只有一天左右的时间来添加一些功能,然后才能继续前进。当我取下“取消”按钮时,“重新处理”按钮变得可见,但似乎一次只能看到一个。可能是什么问题?
接受了“你确定你没有做什么愚蠢的事情吗?”的精神,因为虽然它不是那些特定的事情之一,但它是另一种愚蠢的东西:) – 2009-12-15 17:39:50