网格视图ASP.NET中的文本框 [英] Textbox in grid view ASP.NET

查看:53
本文介绍了网格视图ASP.NET中的文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我在网格的列中添加了一个文本框,并将此网格与数据表链接在一起.我想要的是当我编辑此文本时,datatable的列也应被编辑.
感谢您的帮助.

Hi everyone,
I added a textbox to columns of grid and linked this grid with datatable. What I want is when I edit this text, column of datatable should also get edited.
Thanks for any help

推荐答案

我对问题的理解提示我您不知道如何使用GridView.如果是这种情况,请检查这样的文章一个 [
My understanding of the question hints me that you don''t know how to use the GridView. If that is the case then check articles like this one[^].


很久以来我使用ASP网格视图进行编辑.

在Visual Studio中打开您正在谈论的aspx页面.

选择拆分或此页面的设计视图.

向下导航到GridView所在的位置.

应该有一个>在按钮中,如果单击此按钮,则可以看到配置数据源"作为选项之一.

在这里,您可以设置要在SELECT,UPDATE,INSERT,DELETE上执行的操作.

请参阅以下链接
http://www.asp.net/data-access/tutorials/using-templatefields-in-the-gridview-control-cs [在ASP.NET 2.0中可编辑的GridView [
It has been a long while since I used ASP Grid Views for editing.

Open your aspx page that you are talking about in Visual Studio.

Select Split, or Design view of this page.

Navigate down to where your GridView is.

there should be a > in a button, if you click this you can see "Configure Data Source" as one of the options.

In here you can set what you want it to do on SELECT, UPDATE, INSERT, DELETE.

See the following link http://www.asp.net/data-access/tutorials/using-templatefields-in-the-gridview-control-cs[^]


This link here can help you in another way.

Editable GridView in ASP.NET 2.0[^]

Good luck


尝试此链接
[
try this link
[^]


这篇关于网格视图ASP.NET中的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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