We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Editing rows

Thread ID:





123501 Mar 23,2016 10:44 AM UTC Mar 24,2016 05:55 AM UTC ASP.NET Web Forms 1
Tags: Grid
Jorge Pampin
Asked On March 23, 2016 10:44 AM UTC


In edit mode Normal, when I do double clic in a cell to edit the row, the cursor is moved to the first cell, are there any way to maintain the cursor in the cell where I do double clic?


Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On March 24, 2016 05:55 AM UTC

Hi Jorge,

You can use Batch edit mode to focus the currently clicked cell after rendering the edit form. Refer to the following code example and Help Document.

    <ej:Grid ID="FlatGrid" runat="server" AllowSorting="True" AllowGrouping="true" AllowPaging="True">

        <EditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" EditMode="Batch" />

        <ToolbarSettings ShowToolbar="true" ToolbarItems="add,edit,save,delete,cancel"></ToolbarSettings>


                . . .



Help Document: http://help.syncfusion.com/aspnet/grid/editing#batch--excel-like

Refer to our Online demo on batch editing.


However, you can use the similar functionality with the inline editing mode using the following solution.

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">

    <ej:Grid ID="FlatGrid" runat="server" AllowSorting="True" AllowGrouping="true" AllowPaging="True">

        <EditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" />

        <ToolbarSettings ShowToolbar="true" ToolbarItems="add,edit,save,delete,cancel"></ToolbarSettings>


            . . . . . .. .


        <ClientSideEvents RecordDoubleClick="doubleClick" ActionComplete="actionComplete" />



        function doubleClick(args) {

            this.model.columnName = this.getColumnByIndex(args.cellIndex).field;


        function actionComplete(args) {

            if (args.requestType == "beginedit") {

                var elem = $("#MainContent_FlatGrid" + this.model.columnName);

                if (elem.hasClass("e-dropdownlist"))


                else if (elem.hasClass("e-numerictextbox"))







In the RecordDoubleClick, we can get the column name using cell index. Based on the  column name, you can focus the element that you have clicked in the ActionComplete event. Here, this.model.columnName is implicit variable and we are adding it manually.

Refer to the following Help Document.


We have prepared a sample that can be downloaded from the following location.

Sample: http://www.syncfusion.com/downloads/support/forum/123501/ze/ASPGrid_Inline553567259

Seeni Sakthi Kumar S.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon