Click here to Skip to main content
15,035,685 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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...
Updated 19-Jun-12 22:24pm
Sandeep Mewara 20-Jun-12 6:59am
1. Are you talking of ASP.NET or Winforms?
2. Where are you going to 'click A'? Is there a dropdown outside grid with alphabets?
3. Whats the point of mentioning dropdown in grid?

1 solution

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):[^]

Hope it helps...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900