欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
Using SPGridView to Display Your Data in WSS 3.0
Using SPGridView to Display Your Data in WSS 3.0

The other day I went to visit one of my colleagues in the building I currently work at. Was talking to him and noticed that he was using the SPGridView control to render his data, so thought of using it instead of using the ASP.NET data grid and then spend a lot of time trying to make look like SharePoint!

So as usual, the first thing I do; tried to Google it, the disappointment was that I only found two good posts on the web (One by Paolo and the other is by Bob). That being said; I had to take the challenge and create my own version of the SPGridView. Plus the SPGridView gives you the ability to create list item menus that are like the one that is available with the out of the box list views.

So let us get started!

Features available with my version of SPGridView:

  • Sorting.
  • Grouping.
  • Filtering.
  • Paging.

Going through the blog posts, I found out that SPGridView had some trouble remembering user selection when two operations are applied on the SPGridView at the same time (for example: sorting and filtering, paging and sorting … etc.) and that the developer has to manually store some information in the View State object to make it remember things.

So imagine, every time you want to use the SPGridView, you will have to remember all the details of how to make SPGridView remember its state? Plus more!

First idea came to my mind was to create a new class that inherits the SPGridView (I was lucky it was not sealedJ) and encapsulate all the "remembering" abilities inside of it, this way we leave the developer away from the details of how to handle it.

I am not going to go through the details of what all things mean since Paolo and Bob did a wonderful job explaining it all.

Click here to get the code for the SWSSPGridView that I have implemented.

Now, to test that class, I need to create a ExampleObjectDataSource and a WebPart that will hold the SWSSPGridView.

Click here for the code for the ExampleObjectDataSource.

Click here for the code for the WebPart that will hold our SWSSPGridView.

Deploy the WebPart to your SharePoint environment and add it to a page, you should get the following display.

And now our SWSSPGridView is aware of the user selection and keeps track of it without making the developer worry about how to do it!

本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
觀(guān)點(diǎn) | Web 3.0將為元宇宙的發(fā)展提供底層基礎 | 巴比特
生活希望我們學(xué)會(huì )的50條人生道理
網(wǎng)易公開(kāi)課幸福課筆記
10 Ways To Create Content For Your Weblog
TED學(xué)院 | 快樂(lè )藏在哪里?我們如何尋找它?
21 Things You Didn't Know Your iPhone Could Do
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久