Forum Discussion

BillSimpson's avatar
BillSimpson
Occasional Contributor
10 years ago
Solved

Setting the current active row on an Infragistics XAMDataGrid

I would like to be able to set the current active row on a XamDataGrid.

 

I can find the row by searching for the "Testcomplete Import 1" data value in the datacolumn "Description" on the XamDatGrid called "ListOfMTOsGrid"

 

Set ListOfMTOsGrid = Griddemo.Find("NativeClrObject.Name", "ListOfMTOsGrid", 50)
row = ListOfMTOsGrid.FindRow("Description", "Testcomplete Import 1")
 
if row = -1 then
    Log.Message("Row not found")
    Runner.Halt
end if 
' the above commands gets  the row index I am looking for.

' the following does not work?
CurrentRow = ListOfMTOsGrid.FindId(row)  
Set ListOfMTOsGrid.ActiveRecord = CurrentRow

 

Regards

Bill Simpson