在asp.net的GRIDVIEW中使用dropdownlist [英] working with dropdownlist inside GRIDVIEW in asp.net

查看:82
本文介绍了在asp.net的GRIDVIEW中使用dropdownlist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含3列的gridview
一个下拉列表和两个文本框
DDL包含商店中可用的ITEMS列表.
我需要的是每当更改DDL的选定索引时,我都希望在文本框中加载DDL中所选特定项目的PRICE.
我试图在DDL的selectedindex更改事件中执行此操作,但无法从后面的代码访问TEXTBOXE.
任何形式的建议/帮助都受到赞赏
谢谢.

I have a gridview which has 3 columns
a dropdown list, and two textboxes
the DDL holds the list of ITEMS available in the store.
what i need is whenever the selected index is changed for the DDL i want to load the text box with the PRICE of the particular item selected in the DDL.
i tried to do so in selectedindex change event of DDL but I can not access the TEXTBOXEs from code behind.
ANY KIND of suggestion/help is appreciated
THANKS IN ADVANCE.

推荐答案

到目前为止,您是否尝试过任何方法?

至少要在Google上搜索.

始终尝试 google [ ^ ]首先获得快速响应,
您还可以搜索 CodeProject答案 [ ^ ]

尝试第一个人,然后在此处发布您的问题.
Have you tried anything so far?

At least a search on google..

Always try google[^] first to get quick response,
You can also search on CodeProject answers[^]

Try first man, then post your questions here.


只需检查DDL设置为true的自动回传
just check set autopostback true of DDL


这篇关于在asp.net的GRIDVIEW中使用dropdownlist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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