如何使用下拉列表绑定来编辑,更新gridview中的行。 [英] How to edit,update row in gridview which is searched using dropdown list binded.

查看:88
本文介绍了如何使用下拉列表绑定来编辑,更新gridview中的行。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在mysql中创建了一个表,其中包含产品名称,价格,数量和描述。在asp.net中,我对这些数据进行了网格视图。我已将产品名称绑定到下拉列表中。因此,从下拉列表中选择的产品名称的所有详细信息都将显示在gridview中。我无法编辑或更新从下拉列表中填充的行。相反,它是我的gridview的第一行而不是我从下拉列表中选择的行。可以请任何帮助我。任何代码的例子都表示赞赏。提前谢谢。

I've a table created in mysql which has product name, price, quantity and description. In asp.net, I've a gridview of this data. I've binded product names to dropdown list. so,all the details of the product name selected from dropdown in be displayed in a gridview. I'm unable to edit or update the row which is populated from the dropdown list. Rather it is going to the first row of my gridview than the row I've selected from dropdown. Can any please help me out. Any example of the code is appreciated. Thank you in advance.

推荐答案

这篇关于如何使用下拉列表绑定来编辑,更新gridview中的行。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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