Dear community
I am relatively new in using syncfusion controls, but i am aware that the drag and drop rows functionality is not set by default when using GridGroupingControl. Therefore i am trying to add this functionality on my own but my difficulty is how to determine the row index during the mouse events.
Below is an example that works when using sfdatagrid
private void OnMouseDown(object sender, MouseEventArgs e)
{
//Do your customization here
IsMouseDown = true;
Point p = new Point(e.X, e.Y);
rowColIndex = sfDataGrid1.TableControl.PointToCellRowColumnIndex(p);
mouseDownRecordIndex = this.sfDataGrid1.TableControl.ResolveToRecordIndex(rowColIndex.RowIndex);
if (!(mouseDownRecordIndex < 0))
{
if (ObjList.Count != 0)
selectedItem = ObjList[mouseDownRecordIndex];
}
}
My ObjList is my datasource which is a list of objects. Here we have methods like PointToCellRowColumnIndex and ResolveToRecordIndex. Are there any similar methods when using GridGroupingControl?
Thank you in advance.