12-31-2010, 05:01 AM
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.
OR can someone share the methods which can be used on DevExpress xTraGrid using the Object.MainView option?
Thanks,
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,