Micro Focus QTP (UFT) Forums

Full Version: how to get rowCount for Devexpress xtraGrid detail sheets?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

We are using devExpress xTraGrid with Master-Detail. Is there
a way to get row count in the details view for the selected master record?

Currently using the code below i'm hard-coding the detail sheet # but would be nice to get the count dynamically and then select one.


Code:
Set obj = SwfWindow("regexpwndtitle:=IRI.*").SwfWindow("swfname:=Group").SwfTable("swfname:=grid")

myRow = obj.RowCount


obj.SetCellData myRow, "Group Code *",GroupName
obj.SetCellData myRow, "Public","NO"

'----SetView expands the detail-View record -----
obj.SetView myRow&" GroupInfoList;"

'---0 below Represents the detail-view of master record---
obj.SetCellData 0,"Tariff Codes *", TariffCode
obj.SetCellData 0,"Group Description *", GroupDesc
obj.SetCellData 0,"Alpha Codes", AlphaCode

OR can someone share the methods which can be used on DevExpress xTraGrid using the Object.MainView option?

Thanks,