怎么在GridView中加一个DropDownlist的列?
现在定义一个GridView:<asp:GridViewID="inventoryGridView"runat="server"AutoGenerateColumns="...
现在定义一个GridView:
<asp:GridViewID="inventoryGridView"runat="server"AutoGenerateColumns="False"CellPadding="4"
ForeColor="#333333"GridLines="None"
Font-Size="Small"OnRowDataBound="inventoryGridView_RowDataBound"
Style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; margin-right: 27px;">
<RowStyleBackColor="#9966FF"Wrap="False"/>
<Columns>
<asp:BoundFieldDataField="Name"HeaderText="Name">
<ItemStyleHorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundFieldDataField="ra"HeaderText="State">
<ItemStyleHorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundFieldDataField="ps"HeaderText="OS">
<ItemStyleHorizontalAlign="Center"/>
</asp:BoundField>
</Columns>
</asp:GridView>
我想在最后面加一个列,列中是一个Dropdownlist,该怎么做? 展开
<asp:GridViewID="inventoryGridView"runat="server"AutoGenerateColumns="False"CellPadding="4"
ForeColor="#333333"GridLines="None"
Font-Size="Small"OnRowDataBound="inventoryGridView_RowDataBound"
Style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; margin-right: 27px;">
<RowStyleBackColor="#9966FF"Wrap="False"/>
<Columns>
<asp:BoundFieldDataField="Name"HeaderText="Name">
<ItemStyleHorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundFieldDataField="ra"HeaderText="State">
<ItemStyleHorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundFieldDataField="ps"HeaderText="OS">
<ItemStyleHorizontalAlign="Center"/>
</asp:BoundField>
</Columns>
</asp:GridView>
我想在最后面加一个列,列中是一个Dropdownlist,该怎么做? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询