编辑,删除Gridview行 [英] Edit , Delete Gridview rows

查看:115
本文介绍了编辑,删除Gridview行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





在我的项目中有一个包含订单项的发票对象,对于订单项,有一个列表对象,它是发票类的公共属性,有一对多的关系。

保存数据库表中的订单项我使用了会话表。



一旦我用订单项检索发票它在表单视图中显示数据网格中的行项目和发票详细信息。



保存和检索是可以的。



我的问题是,



我希望删除订单项中的某些行并需要编辑订单项中的数据的情况。我不知道这样做。





任何建议都非常感谢。



谢谢



in my project there is a invoice object with line items, for line items there is a list object which is a public property of invoice class, having one to many relationship.
to save line items in database table i used session table.

once i retrieve invoice with line items it is display line items in a data grid and invoice details in form view.

saving and retrieve is ok with me.

my problem is,

situation where i want to delete some rows in line items and need to edit data in a line items. i do not have idea of doing this.


any suggestion highly appreciated.

thanks

推荐答案

参见在ASP.NET Gridview中插入,更新,删除,作为SQL Server的DataSource,MS Access(mdb / accdb),XML和Framework为2.0 / 3.0 / 3.5 / 4.0(VS 2005/2008 / 2010) [ ^ ]



祝你好运,

Edo
See Insert, Update, Delete in ASP.NET Gridview, DataSource as SQL Server, MS Access (mdb/accdb), XML and Framework as 2.0 / 3.0 / 3.5 / 4.0 (VS 2005/2008/2010)[^]

Good luck,
Edo


参见这个链接。

http:/ /www.aspdotnet-suresh.com/2011/02/how-to-inserteditupdate-and-delete-data.html [ ^ ]

谢谢你。
See this link.
http://www.aspdotnet-suresh.com/2011/02/how-to-inserteditupdate-and-delete-data.html[^]
Thank u.


这篇关于编辑,删除Gridview行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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