Hi Surendra,
We had worked with TestComplete earlier and there were no issue in recognization of the grids, may be some customizations need a work around.
1. Expand and collapse when double click on the header cell is not a default behavior, probably the column or row is either hidden on double click or height/width reduced to 0. This can be known from either of the code below.
if(this.gridControl1.ColWidths[4] == 0) // or
if(this.gridControl1.Cols.Hidden[e.ColIndex]) // or
if(this.gridControl1.HideCols[e.ColIndex])
2. Check the cell value, to see if that is updated. CellValue can be reached this way as an example please refer to the code.
form = Sys["Process"]("MaskEditCells")["WinFormsObject"]("Form1");
grid = w3["WinFormsObject"]("panel1")["WinFormsObject"]("splitterControl1")["WinFormsObject"]("gridControl1");
if(grid["Item"](row, col)["CellValue"] == "X")
// ....
RaiseCellDoubleClick can be considered instead of knowing the bounds. This is an overloaded function, so please check the right function to be used in the TestComplete environment, usually a suffix of underscore and a number is used to identify.
grid.RaiseCellDoubleClick(row, col, null);
The bounds for a given cell can be known from RangeInfoToRectangle
Rectangle rect = this.gridControl1.RangeInfoToRectangle(Syncfusion.Windows.Forms.Grid.GridRangeInfo.Cell(4, 4));
RaiseCellDoubleClik can also be used on header to perform the task differently. Please also refer to the
sample application.
Best regards,
Stanley