且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用下拉列表的数据网格过滤器

更新时间:2023-01-26 17:59:16

您好朋友
您需要此更改

1)在标题下拉菜单中设置autopostback属性= true
2)生成该下拉事件的SelectedIndexChanged事件
3)在这种情况下,您必须编写代码以过滤数据,然后将数据重新分配到网格以重新绑定它,并且输出将是网格数据,因为下拉菜单会更改索引

我希望这就是你想要的.
如果您满意,请不要忘记接受ans作为解决方案并对我的ans评分..
Hello friend
you need this changes

1) set the autopostback property = true in header drop down
2) generate a SelectedIndexChanged event of that drop down event
3) in that event you have to write your code that will filter your data and that data will be reassign to your grid to re bind it and the out put is your grid data will be filtered as per your drop down will change the index

i hope this is what you want..??

if you satisfied please don''t forgot to accept ans as solutions and also rate my ans..