すみません。私はこれで本当に新しいですが、私は本当に難しいです。 私は本当にテキストボックスとドロップダウンリストを編集するためにgridviewに配置する方法について助けが必要です。GridViewにテキストボックスとドロップダウンリストを入れて編集する方法
これは私が<asp:dropdownlist>
と<asp:templatefield>
を入れてみましたが、私はエラー「タイプを抱えている私のGridView
<div id="id_tm1" runat="server" class="grid" style="border: 1px solid black; overflow: scroll;
width: 94%; height: 103px" visible="true">
<asp:GridView ID="gvGroup" runat="server" AllowPaging="true" AllowSorting="True"
AutoGenerateColumns="False" BorderColor="Silver" BorderWidth="1px" Height="77px"
Width="98%">
<RowStyle Font-Names="Arial" Font-Size="9pt" HorizontalAlign="Center" />
<Columns>
<asp:BoundField DataField="JOBTITLE" HeaderStyle-BackColor="#666666" HeaderText="Job Title"
ItemStyle-Height="10px" ItemStyle-Width="50px">
<HeaderStyle BackColor="#666666" />
<ItemStyle Width="50px" />
</asp:BoundField>
<asp:BoundField DataField="BUSINESS_UNIT" HeaderStyle-BackColor="#666666" HeaderText="Business Unit"
ItemStyle-Height="10px" ItemStyle-Width="50px">
<HeaderStyle BackColor="#666666" />
<ItemStyle Width="50px" />
</asp:BoundField>
<asp:BoundField DataField="DIVISION" HeaderStyle-BackColor="#666666" HeaderText="Division"
ItemStyle-Height="10px" ItemStyle-Width="50px">
<HeaderStyle BackColor="#666666" />
<ItemStyle Width="50px" />
</asp:BoundField>
<asp:BoundField DataField="SUB_DIVISION" HeaderStyle-BackColor="#666666" HeaderText="Sub-Division"
ItemStyle-Height="10px" ItemStyle-Width="50px">
<HeaderStyle BackColor="#666666" />
<ItemStyle Width="50px" />
</asp:BoundField>
<asp:BoundField DataField="CLASSIFICATION" HeaderStyle-BackColor="#666666" HeaderText="Classification"
ItemStyle-Height="10px" ItemStyle-Width="50px">
<HeaderStyle BackColor="#666666" />
<ItemStyle Width="50px" />
</asp:BoundField>
<asp:BoundField DataField="SUB_CLASSIFICATION" HeaderStyle-BackColor="#666666" HeaderText="Sub-Classification"
ItemStyle-Height="10px" ItemStyle-Width="50px">
<HeaderStyle BackColor="#666666" />
<ItemStyle Width="50px" />
</asp:BoundField>
</Columns>
<PagerStyle Font-Size="9pt" HorizontalAlign="Right" />
<EmptyDataTemplate>
<div style="width: 100%; font-size: 10pt; text-align: center; color: Red;">
No record found.
</div>
</EmptyDataTemplate>
<HeaderStyle BackColor="DarkGray" Font-Bold="True" Font-Names="Arial" Font-Size="9pt"
ForeColor="White" HorizontalAlign="Center" />
<AlternatingRowStyle BackColor="Gainsboro" />
</asp:GridView>
</div>
の私のコードである「System.Web.UI.WebControls.BoundFieldの公開を持っていません私はGridViewのアイテムリストの[編集]ボタンをクリックして、それを編集することができたときに「TemplateField」または「のDropDownList」という名前のプロパティが
テキストボックスとドロップダウンリストが表示されます。Output ありがとう。
まだコードはありますか?あなたの質問を改善するために[最小、完全、および検証可能な例を作成する方法](http://stackoverflow.com/help/mcve)を見てください。 –
コードでフィドラーを作成してください。私は簡単に回避できます。 – UDID