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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Code behind disable grid row double click

Thread ID:

Created:

Updated:

Platform:

Replies:

131170 Jun 26,2017 10:58 AM UTC Jun 27,2017 08:22 AM UTC ASP.NET Web Forms 1
loading
Tags: Grid
Pratheep
Asked On June 26, 2017 10:58 AM UTC

Hi

Code behind how to disable grid row double click or disable grid

Thanks
Pratheep

Vignesh Natarajan [Syncfusion]
Replied On June 27, 2017 08:22 AM UTC

Hi Pratheep, 

Thanks for contacting Syncfusion support. 

Query: Code behind how to disable grid row double click or disable grid  
 
We can disable the editing on double click by setting AllowEditOnDblClick property as false in code behind. Please refer to the below code snippet 
protected void Page_Load(object sender, EventArgs e) 
        { 
            BindDataSource(); 
        } 
        private void BindDataSource() 
        { 
            int orderId = 10000; 
            int empId = 0; 
            for (int i = 1; i < 9; i++) 
            { 
                order.Add(new Orders(orderId + 1, "VINET", empId + 1, 32.38, new DateTime(2014, 12, 25), "Reims")); 
                order.Add(new Orders(orderId + 2, "TOMSP", empId + 2, 11.61, new DateTime(2014, 12, 21), "Munster")); 
                order.Add(new Orders(orderId + 3, "ANATER", empId + 3, 45.34, new DateTime(2014, 10, 18), "Berlin")); 
                order.Add(new Orders(orderId + 4, "ALFKI", empId + 4, 37.28, new DateTime(2014, 11, 23), "Mexico")); 
                order.Add(new Orders(orderId + 5, "FRGYE", empId + 5, 67.00, new DateTime(2014, 05, 05), "Colchester")); 
                order.Add(new Orders(orderId + 6, "JGERT", empId + 6, 23.32, new DateTime(2014, 10, 18), "Newyork")); 
                orderId += 6; 
                empId += 6; 
            } 
            this.Grid1.DataSource = order; 
            this.Grid1.DataBind(); 
            this.Grid1.EditSettings.AllowEditOnDblClick = false;  
        } 
 
 
We have prepared the sample, the same can be downloaded from below link. 
 
 
 
Please refer our help documentation for your reference.  
 
 
 
if we misunderstood your query please get back us with your detailed requirement. 
 
Regards, 
Vignesh Natarajan. 


CONFIRMATION

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.

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

;