如何在gridview中添加文本框? [英] how to add a textbox in a gridview?

查看:419
本文介绍了如何在gridview中添加文本框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1。如何为网格视图中的每一行添加一个文本框,我可以在其中放置整数/货币值。

2.如何将所有网格视图值插入到sql表中?



表结构是:



id int

name varchar(20)

地址Varchar

集合int(此集合选项是网格视图中的添加文本框)

解决方案

检查此链接用于在gridview中创建文本框

如何在网格视图中动态创建模板列 [ ^ ]



查看此链接以获取gridview值

http://forums.asp.net/t/1783073.aspx/1 [< a href =http://forums.asp.n et / t / 1783073.aspx / 1target =_ blanktitle =New Window> ^ ]


从这里找到所有这些东西..

http://csharp.net-informations.com/datagridview/csharp-datagridview -tutorial.htm [ ^

1. how to add a text box for every rows in a grid view where i can put integer/money values.
2. how to insert all grid view values values into a sql table??

Table structure is :

id int
name varchar(20)
address Varchar
collection int (this collection option is the adding text box in grid view )

解决方案

check this link for create textbox in gridview
How to create template columns dynamically in a grid view[^]

check this link for get the gridview values
http://forums.asp.net/t/1783073.aspx/1[^]


Find all those things from here..
http://csharp.net-informations.com/datagridview/csharp-datagridview-tutorial.htm[^]


这篇关于如何在gridview中添加文本框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆