Hi........
The error is ...System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index
My code is like this.........
ptoInfoData.InfoRow[] infoRow = GetInfoRow();
for (int i=0; i < infoRow.Length; i++)
{
if (! smInfoId.Contains(infoRow.info_id))
{
//did some coding here
HERE NEAR THIS LINE THAT ERROR IS COMMING
this.phInfo.Controls.AddAt( i , (ptoInstance));
}
}
I tried like this also
for (int i=0; i < InfoRow.Length -1; i++)
and also
for (int i=0; i <= InfoRow.Length; i++)
and also
this.phInfo.Controls.AddAt( i -1, (ptoInstance));
it is not working...
pls help me it is urgent
Thanks in advance....
The error is ...System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index
My code is like this.........
ptoInfoData.InfoRow[] infoRow = GetInfoRow();
for (int i=0; i < infoRow.Length; i++)
{
if (! smInfoId.Contains(infoRow.info_id))
{
//did some coding here
HERE NEAR THIS LINE THAT ERROR IS COMMING
this.phInfo.Controls.AddAt( i , (ptoInstance));
}
}
I tried like this also
for (int i=0; i < InfoRow.Length -1; i++)
and also
for (int i=0; i <= InfoRow.Length; i++)
and also
this.phInfo.Controls.AddAt( i -1, (ptoInstance));
it is not working...
pls help me it is urgent
Thanks in advance....