动态生成列下拉问题 [英] dynamic generate column dropdown problem

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

问题描述

嗨朋友

i在这个网格视图中有一个动态网格视图,两个下拉框状态和城市,一个添加按钮和一个删除按钮,当我点击添加按钮生成新的动态列,当我点击删除按钮在网格视图中删除一列

我的问题是当我填写像state =>这样的记录时古吉拉特邦和城市=> Ahmedab​​ad并点击添加按钮并生成新列,但城市下拉列表是空白的,我使用更新面板但是你的工作没有,所以请你给我一个想法

hi friends
i have one dynamic grid view in this grid view two drop down box like state and city and one add button and one delete button when i click add button generate new dynamic column and when i click delete button one column are delete in grid view
and my problem is when i fill up record like state=> gujarat and city=> Ahmedabad and click add button and generate new column but city drop down are blank and i use update panel but thy are not working so nay one please give me a idea

推荐答案

尝试通过将gridview属性的启用视图状态模式设置为true
try by setting enable view state mode of gridview property to true


确保在ispost back事件中填充网格
make sure you fill the gird in ispost back event


这篇关于动态生成列下拉问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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