如何从购物车中删除该行?任何一个例子? [英] how to remove the row from the shopping cart?Any example ?

查看:68
本文介绍了如何从购物车中删除该行?任何一个例子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从购物车中删除行?任何例子??

解决方案

最好的方法你可以使用这个

DataRow博士=(DataRow)删除[e.RowIndex];





注意:



如果你至少使用 .NET 2.0 并使用像List< t>这样的强类型集合,你应该避免使用ArrayList(或HashTable)。或字典< tkey,>代替。

how to remove the row from the shopping cart?Any example ??

解决方案

best way you can use this
DataRow dr = (DataRow)remove[e.RowIndex];


note:

you should avoid ArrayList (or HashTable) if you're using at least .NET 2.0 and use the strong typed collections like List<t> or Dictionary<tkey,> instead.


这篇关于如何从购物车中删除该行?任何一个例子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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