Micro Focus QTP (UFT) Forums
how to get rowCount for Devexpress xtraGrid detail sheets? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: how to get rowCount for Devexpress xtraGrid detail sheets? (/Thread-how-to-get-rowCount-for-Devexpress-xtraGrid-detail-sheets)



how to get rowCount for Devexpress xtraGrid detail sheets? - hotzone - 12-31-2010

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,