Ticket T703414
Visible to All Users

dxDataGrid - How to drag and drop rows from one position to another

created 6 years ago

I want to change the position of row .
For example if i have shift the position of last row in the grid to different position. i have to simple drag that row to different position and after that drop that selected row to that position. Please help me to do this.

Please make the changes in code.  Thanks in advanced !

$(function(){
    $("#gridContainer").dxDataGrid({
        dataSource: employees,
        showBorders: true,
        columns: [
            {
                dataField: "Prefix",
                caption: "Title",
                width: 60
            }, "FirstName",
            "LastName",
            "City",
            "State", {
                dataField: "Position",
                width: 130
            }, {
                dataField: "BirthDate",
                dataType: "date",
                width: 100
            }, {
                dataField: "HireDate",
                dataType: "date",
                width: 100
            }
        ]
    });
});

Comments (1)
DevExpress Support Team 6 years ago

    Hello,
    I have answered this question in the dxDataGrid - How to change the position of selected rows ticket, so let's continue the discussion in this thread.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.