GridView内的DropDownList [英] DropDownList inside a GridView

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

问题描述

我在`gridview`中有一个`Dropdownlist`,在我的网格中我有10条记录,我的下拉值为1,2,3 ... 10.在第一个记录的下拉值是1,第二个记录的下拉值是2....

1.现在我将5下拉值更改为2,然后将第二个下拉值更改为3,将3下拉值更改为4,将第4个下拉值更改为5

2.我将第5个下拉列表值更改为8,然后将第8个下拉列表值更改为7,将第7个下拉列表更改为6,将第6个下拉列表更改为5

I have a `Dropdownlist` with in a `gridview`, in my grid I have 10 records, my dropdown values are 1,2,3...10. In first record drop down value is 1, second record dropdown value is 2....

1. now I changed the 5 drop down value to 2, then second drop value is changed to 3 and 3 dropdown has been changed to 4, 4th dropdown has been changed to 5

2. I changed the 5th drop down value to 8, then 8th dropdown value is changed to 7, 7th dropdown has been changed to 6, 6th dropdown has been changed to 5

推荐答案

检查是否在网格中设置了Sort属性.它可能会自动重新排列列表.
Check whether you set the Sort property in the grid. It may automatically realign the list.


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

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