GridView-动态添加行 [英] Gridview-dynamically adding rows

查看:60
本文介绍了GridView-动态添加行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网格视图,可以动态添加行,包括一个下拉列表,例如dp1和一些文本框. value.但是现在当我在下拉列表中选择一个值时,它将影响网格视图中的所有行.

I have a grid view, in that i can add rows dynamically including one drop downlist say dp1 and some text boxes.In the selected index change even of drop down list the some of the text boxes will be inviisble based on the selected value.But now when i select a value in dropdownlist it is affecting all the rows in grid view. How can i make it possible to make invisible the columns of particular row based on the selected value of dropdown list..?

推荐答案

Aflath,
Hi Aflath,
Adding rows Dynamically to GridView

Don''t post Questions Directly on CP,just do some work on it,make it a habbit.
Have a good time...


您将能够找到事件生成控件的父级(ddl1.parent),父级将是ddl所在的行,查找其余部分同一父行中的文本框,而您不是.

希望这个想法对您有帮助...
you would be able to find parent of your event generating control (ddl1.parent), the parent will be the row where the ddl is residing find rest of the textboxes in the same parent row, and you are dont.

wish the idea will help you...


这篇关于GridView-动态添加行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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