Quantcast
Channel: New board topics in SmartBear Community
Viewing all articles
Browse latest Browse all 21061

Setting the current active row on an Infragistics XAMDataGrid

$
0
0

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

 


Viewing all articles
Browse latest Browse all 21061

Trending Articles