Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to get rowCount for Devexpress xtraGrid detail sheets?
#1
Not Solved
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,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  unable to rowcount in web table manoj84monu 1 2,779 06-13-2016, 04:46 PM
Last Post: Anu1234
  Does QTP support writing runtime data to multiple sheets in excel Shwethareddy 2 3,532 10-16-2012, 12:20 PM
Last Post: Shwethareddy
  comparing two excel sheets in QTP kodhanrajesh 0 4,209 08-31-2011, 09:01 AM
Last Post: kodhanrajesh
  data transfer across sheets of datatable ajay.r1982 1 2,137 07-02-2009, 09:46 PM
Last Post: desimunda

Forum Jump:


Users browsing this thread: 1 Guest(s)