1
A
答えて
0
あなたの質問はかなり簡単ですが、私はあなたが何をしたいのかを理解すると思うなら、あなたはこの試みることができる場合:追加したい場合は、ボタン
List<string> ThisIsYourList = new List<string>();
Gridview1.DataSource = ThisIsYourList;
Gridview1.DataBind();
の分離コードで
をすべての行にドロップダウンリストには、あなたはこのようなあなたのGridViewにItemTemplateにを追加する必要があります。
<asp:TemplateField>
<ItemTemplate>
<asp:DropDownList ID="DropDownList1" runat="server"/>
</ItemTemplate>
</asp:TemplateField>
あなたはどこでもあなたのGridViewのタグの間に、このItemTemplateに追加します。
0
GridViewは、データバインドされたコントロールです。つまり、データソース内の内容を示します。行を追加するには、データソースに項目を追加し、gridviewを再バインドする必要があります。グリッドビューに行を直接追加することはできません。
関連する問題
- 1. ROW NUMBER()OVER
- 2. Counting the number of multi-byte characters
- 3. asp.net gridview - select row
- 4. Python click pass unspecified number of kwargs
- 5. GridViewコントロールのRowコマンドで
- 6. Rowdatabound of gridview
- 7. ダイナミックGridViewのドロップダウンは
- 8. GridView with merged cells
- 9. Gridview SelectedIndex "lag" with postback
- 10. aspx GridView filter with javascript
- 11. Android - Gridview with Icon and text
- 12. Telerik GridView Rowで特定のセルを無効にする方法
- 13. "number of"には標準の簡潔な名前がありますか?
- 14. WPFのgridviewにrow dyanamicalyを追加する
- 15. Gridview on row updateセルから値を取得する
- 16. FluentValidation on number issue
- 17. JavascriptでNumber([])=== 0とNumber({})=== NaNはなぜですか?
- 18. ダイナミックなTPanelの動的なTImage?
- 19. MSSQL get row 10 - 20
- 20. ダイナミックな解釈
- 21. ダイナミックなユーザーランク
- 22. ダイナミックなフォームタイトル
- 23. pandas row specific apply
- 24. display:table-row not working
- 25. DataGridView System.Data.ConstraintException on row
- 26. excel row xlwt、python
- 27. Struts 1 - Row submit
- 28. PostgreSQLデータ型ROW?
- 29. Silverlight Datagrid Rowクリック
- 30. Cassandra ttl on row
ありがとう、私はテキストボックスの行の数を定義するために私のプログラムを使用する人が必要です。私はよく彼のグリッドを生成するために、5列 とテキストボックスに挿入する行の数を含んでいますか? – AAHN