Maintain Scrolling position or current focus on gridview row editing event in

We are continuously sharing best and important article that can help to short out your problems. Today we come with another best article that will surely help you while using Gridview Control.
  Gridview is best Data Control for display data in You can use AutoGenerateColumns=true to bind Gridview without declare any columns in it. We will discuss about different between gridview, repeater and formview. In this article we discuss important issue that might face whenever we use gridview. 
       When we have binding large data to gridview we can not show it directly, it may increase page size. To come over this problem we either use scroll or paging. In both condition when we fire bubble events like edit, update or delete , we can not maintain scroll of GridView. Our Page bring us on top when any bubble fire by user.
To Focus on RowEditing Event or maintain scroll while RowEditing you must add MaintainScrollPositionOnPostback="true" on page directives.
<%@ Page Language="C#" AutoEventWireup="true" MaintainScrollPositionOnPostback="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
You may refer out GridView articles for detail Information.


Popular posts from this blog

12 opensource and free MVC gridview contols

Scheduling background jobs using Hangfire in ASP.NET Core

Difference ExecuteNonQuery vs ExecuteScalar vs ExecuteReader in