Forum Discussion
7 Replies
- irina_lukinaSuper Contributor
Hi Vikas,
You can try using the approaches described in the Obtaining and Setting Cell Values in Microsoft DataGrid and Common Operations for Grids help topics. Does any of these approaches help?
- vjjohnson04Occasional Contributor
I tried the above methods and the wvalue(row,column) but it doesnt seem to work for me.
Code:
'comment: Here i get the count
set Obj = Aliases.EFLT_EO_UI.HwndSource_MainView.MainView.Grid.mainTabControl.FeatureView.LayoutRoot.ResidenceSearchView.Grid
Count = Obj.WPFObject("advanceResultRadGridView").Items.Count
now from i want the cell value from "advanceResultRadGridView" grid for eg:1st row 2nd column.
- vjjohnson04Occasional Contributor
som additional info:
this is the mapped name:
Aliases.EFLT_EO_UI.HwndSource_MainView.MainView.Grid.mainTabControl.FeatureView.LayoutRoot.ResidenceSearchView.Grid.advanceResultRadGridView.GridViewRow.GridViewCell
clrfullcalssname: Telerik.Windows.Controls.GridView.GridViewCell
- irina_lukinaSuper Contributor
Hi Vikas,
I used the Telerik.WinControls.UI.RadGridView control and failed to reproduce the behavior you had described. I managed to obtain the cell values using the following code:
Sys.Process("TelerikExamples").WinFormsObject("radGridView1").wValue(1, "Column_name")If this approach doesn't work for your application, I recommend that you contact our Support Team and send them the sample application with the mentioned grid control so that they could reproduce the behavior.
Thanks.
- vjjohnson04Occasional Contributor
- irina_lukinaSuper Contributor
Hi Vikas,
You can use the following code:
Sys.Process("Orders").WPFObject("HwndSource: MainForm").WPFObject("MainForm").WPFObject("gridMain").WPFObject("OrdersView").Items.Item(2).CardHere, the index in the Item(Index) method specifies the row number, the Card parameter is the name of the needed column. So, in general, you need to use the following syntax:
Sys.Process("Orders").WPFObject("HwndSource: MainForm").WPFObject("MainForm").WPFObject("gridMain").WPFObject("OrdersView").Items.Item(Row_number).Column_NameDoes this help?
- vjjohnson04Occasional Contributor
Thanks a lot this did help me a lot :-)
this the code i actually used..
Code:
row_count = Sys.Process("EFLT.EO.UI").WPFObject("HwndSource: MainView", "Elektra - QA").WPFObject("MainView", "Elektra - QA", 1).WPFObject("Grid", "", 1).WPFObject("mainTabControl").WPFObject("FeatureView", "", 1).WPFObject("LayoutRoot").WPFObject("ResidenceSearchView", "", 1).WPFObject("Grid", "", 1).WPFObject("advanceResultRadGridView").items.Item(i).SupplierName
Related Content
- 8 months agoEgg