Asp.Net gridview customization
If you go to http://ifdefined.com/btnet/bugs.aspx you will see a long list of sample data in an asp.net gridview control. What I need to do is something similar. I need to implement the filter开发者_运维百科ing system by placing dropdown controls with dynamic values on the headers and then filter the record according to them.
If you look carefully they are filtering the data based on multiple drodown selections as well.
Kindly help me out. Any kind of input is highly appreciated.
Thanks in advance for your time.
You can:
- set the dropdownlists to
autoPostback=true
- Reload the
data in the Dropdownlist
selectionChnaged event. Give the
gridview a new dataset with the
applied filter and call
DataBind()
- Place the griview + Dropdownlist into an UpdatePanel for ajax functionality
精彩评论