Forum Discussion
j_sripathi
12 years agoNew Contributor
Hi Ted,
Did you overcome this this issue? I almost stuck in this issue and it randomly occurs when the below function is called repeatedly.
function _GetGridRowIndexContainsText (oGrid, ColIndex,szText)
{
Did you overcome this this issue? I almost stuck in this issue and it randomly occurs when the below function is called repeatedly.
function _GetGridRowIndexContainsText (oGrid, ColIndex,szText)
{
var _szActual;
if(_IsStringContainsText(oGrid.ClrClassName,"GridDataBoundGrid"))
{
oGrid = oGrid.Model;
}
for(var i=1; i<=oGrid.RowCount;i++)
{
_szActual = String(oGrid.Item(i, ColIndex).FormattedText.OleValue);
if(_IsStringEqual(_szActual,aqString.Trim(szText),false))
return i;
}
return -1;
}