Improve List View and Grid View performance and startup time through UI virtualization, element reduction, and progressive updating of items.For data virtualization techniques, see List View and Grid View data virtualization. A photo viewer has collections of photos, a reader has collections of articles/books/stories, and a shopping app has collections of products.
There are two key factors in performance when it comes to collections: one is the time spent by the UI thread creating items; the other is the memory used by both the raw data set and the UI elements used to render that data.For smooth panning/scrolling, it's vital that the UI thread do an efficient and smart job of instantiating, data-binding, and laying out items.UI virtualization is the most important improvement you can make.If you use Variable Sized Wrap Grid, Wrap Grid, or Stack Panel, then you will not get virtualization.Additionally, the following List View events are raised only when using an Items Wrap Grid or an Items Stack Panel: Choosing Group Header Container, Choosing Item Container, and Container Content Changing.It is not allow me fire the event or nothing happen when I click on Delete button from grid view. If we set TRUE means its allow to update in content database as a result of GET Request.
After spending two or three hours in analyzing the issue, I found that it is related to security and not allow me to update data in content database. So once we set allow unsafe update to true then it is very important to set back it to false after updating in through code.Problem: One day, I have created application page in which I used grid view control.I have used link button control to delete item from grid view and grid view is bind with Share Point 2010 document library data.if we used try..catch block in our code then also we need to set it false in catch or finally block for safer side. Note For more details, see the //build/ session Dramatically Increase Performance when Users Interact with Large Amounts of Data in Grid View and List View.When a virtualized Items Control is placed in a panel like that, it takes enough room to display all of its items, which defeats virtualization.