Hi,
Scenario : I have an UltraGrid whch displays rows on a Search criteria. On firing a Search Criteria, I want to operate the specific cells in specified rows of the grid. But when I try to get the RowCount of the Grid displayed on a particular search criteria, its giving a count in thousands. when the grid shows only 5 rows retreived.
SwfWindow("SmartBox by Chevron -").SwfTable("UgrdBrowseItems").RowCount
Help me out with solution.
thnks in advance.
Anand
grid.Rows.FilteredInRowCount
Hi Amiram,
Thanks for that really it gave what i was looking for .
Thanks
foreach (UltraGridRow in grid.Rows.GetFilteredInNonGroupByRows())
{
row.Cells["xyz"].Value = true;
}
unable to understand i am a novice
unable to execute.
The previous code should check all checkboxes of visible rows. What exactly doesn't work?
Application is full of infragistics grid controls, need to access the data inside the grid.
when i try to access it has the name as the control name like infragistics.win......ultrawingrid....
How to access this, please help me out with this.
while recording its - activate row "2888" ; activate cell "2888", "ship" ; setcelldata "2888" , "Ship", "true" for the first row.
If any means to learn or contact you directly please suggest.
Do you have a compile problem? Do you use VB or C#?
vmgx,
I provided details on how to set the value of a cell by visible index when the grid is filtered in another thread in the TestAdvantage forum:
http://community.infragistics.com/forums/p/26843/144527.aspx#144527
You should be able to use a similar approach to check the checkboxes when using QTP for testing.
Alan
Do you mean you need to watch values? "Check the checkbox" means making it checked (true) or see if it is checked?
If I understood you right, then grid.Rows.GetFilteredInNonGroupByRows()[index] will give you the row at a specific filtered in row index.
Activate the cell: grid.ActiveCell = row.Cells["xys"];
Check the cell value: (bool)cell.Value == true;
But u have understood the scenario can u suggest me with anything
Sorry, but I'm not familiar with that.
Hi Amiram, Basically i am a Automation tester.No idea about that. both VB & C# are used for different screens