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

CheckBox in DataGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

141211 Nov 29,2018 07:23 PM UTC Nov 30,2018 07:18 AM UTC WinForms 1
loading
Tags: SfDataGrid
Adam
Asked On November 29, 2018 07:23 PM UTC

Hi

I have a DataGrind and look for some example how to manage a click event. I have CellCheckBoxClick event but I don´t know how I know for example how row is clicked ect.
Do you have some example for this?

Deivaselvan Y [Syncfusion]
Replied On November 30, 2018 07:18 AM UTC

Hi Adam, 

Thanks for contacting Syncfusion support.  

You can make use of the events SfDataGrid.CellClick and SfDataGrid.CellDoubleClick to manage the click operations performed within the DataGrid cells.  

Please refer the following code example. 

Code example :  

this.sfDataGrid.CellClick += OnCellClick; 
this.sfDataGrid.CellDoubleClick += OnCellDoubleClick; 
 
void OnCellClick(object sender, Syncfusion.WinForms.DataGrid.Events.CellClickEventArgs e) 
{ 
    if (e.DataRow.RowIndex == 1) 
    { 
        //Do you customizations here. 
    } 
} 

void OnCellDoubleClick(object sender, Syncfusion.WinForms.DataGrid.Events.CellClickEventArgs e) 
{ 
    if (e.DataRow.RowIndex == 1) 
    { 
        //Do you customizations here. 
    } 
} 


You can use SfDataGrid.TableControl.Click and SfDataGrid.TableControl.DoubleClick events to manage click operations on the control. 

Please refer the following UG links. 

Regards, 
Deivaselvan 


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.

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

;