|
//gridGroupingControl1.Focus();
Rectangle rect = gridGroupingControl1.TableControl.RangeInfoToRectangle(GridRangeInfo.Cell(gridGroupingControl1.TableControl.TopRowIndex - 1, 1));
//To find the mid position of the icon since, its width and height are 15 and aligned at the center based on row height.
Point point = new Point(rect.X + gridGroupingControl1.TableDescriptor.Columns[0].Width - 8, rect.Y + 15);
ActiveXSnapshot.FakeLeftMouseClick(gridGroupingControl1.TableControl, point); |