如何在GridView中绑定DropDownList [英] How do you bind a DropDownList in a GridView

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

问题描述

当我们在DropDownList中有A,B,C,D ...等等时,如何在GridView中绑定DropDownList.单击"A"时,它将在GridView中显示所有以"A"开头的名称.等等...

How do you bind a DropDownList in a GridView When We have A,B,C,D....& So On In DropDownList. On Clicking ''A'',It Should Show All Names Starting From ''A'' In GridView. And So On...

推荐答案

我从您的问题中了解到的是,您在gridview中需要字母过滤".我认为在下拉菜单中显示所有26个字母不是一个好主意,因为它不是非常友好的用户.

显示所有26个字母A-Z是一种更好且用户友好的前进方式,因此任何人都可以单击字母,并且所有行将根据字母的选择进行过滤.

这是完整的解决方案(带有源代码): ^ ]

希望对您有帮助...
What I am understanding from your question is that you need "alphabetical filtering" in your gridview. I don''t think displaying all the 26 alphabets in a dropdown menu is a good idea because it is not very user-friendly.

Displaying all the 26 alphabets A-Z is a better and user-friendly way of going forward so that anybody can just click the alphabet and all the rows will be filtered based on the selection of the alphabet.

Here is the complete solution (with source code): http://www.strivingprogrammers.com/boards/t/276/how-to-create-a-z-link-alphabetical-filtering-for-gridview-data.aspx[^]

Hope it helps...


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

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