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 !
THANK YOU :)
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); } } |