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. Image for the cookie policy date

Sfdatagridview CellDoubleClick Event

SfdatagridTableSummaryDoubleClick-min115 (1).jpg Hello everyone,

When I click on Table Summary cell, how do I know which column it belongs to?

I sent a picture for you

please help me very important !


3 Replies 1 reply marked as answer

SJ Sathiyathanam Jeyakumar Syncfusion Team December 19, 2022 01:20 PM UTC

Hi Murad Jafarov,

We have prepared the sample based on your requirement, and you can get the column index based on the mouse point in SFDataGrid by calling the PointToCellRowColumnIndex() method. Refer to the code snippets and screenshots to get more information.

this.sfDataGrid1.TableControl.MouseDoubleClick += SfDataGrid1_MouseDoubleClick;


private void SfDataGrid1_MouseDoubleClick(object sender, MouseEventArgs e)


    var rowColumnIndex = this.sfDataGrid1.TableControl.PointToCellRowColumnIndex(new Point(e.X, e.Y));


    if (this.sfDataGrid1.TableControl.IsTableSummaryIndex(rowColumnIndex.RowIndex))


        var columnName = this.sfDataGrid1.Columns[rowColumnIndex.ColumnIndex];

        MessageBox.Show("Clicked column : " + columnName);