Powered by: Dharamveer Saxena

Thursday, November 5, 2009

TestComplete : To access cell of Infragistics UltraGrid using row index and column index

To access Infragistics grid's cell on the basis of row and column index:

-------------------

function get_cell(grid, row, column)
set get_cell = grid.DisplayLayout.Rows.Item(row).Cells.Item(column)
end Function

-------------------

You can use this function as follow to set the value in it:

sub main
'here Ultragrid is the object of grid
call get_cell(Ultragrid, 0, 4).set_Value("checking")
end sub




No comments:

Post a Comment