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
Hi Amiram
Its erroring as wrong no of arguments
Where is the error exactly?
SwfTable("UgrdBrowseItems").Object.Rows.FilteredInRowCount - -I got the search criteria row count.
Out of them, I want to check the checkboxes in 2nd column of each row (at my liberty 1st, 3rd etc)
First i need to select the row number.
activate the cell
check the cell checkbox
Thanks in advance !!!
foreach (UltraGridRow in grid.Rows.GetFilteredInNonGroupByRows())
{
row.Cells["xyz"].Value = true;
}
unable to understand i am a novice
unable to execute.
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