开发者

Asp.Net gridview customization

开发者 https://www.devze.com 2022-12-30 08:59 出处:网络
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开发者_运

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:

  1. set the dropdownlists to autoPostback=true
  2. Reload the data in the Dropdownlist selectionChnaged event. Give the gridview a new dataset with the applied filter and call DataBind()
  3. Place the griview + Dropdownlist into an UpdatePanel for ajax functionality
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号