On performing The casting of this.Controls[0] to Table i am getting exception "Specified argument was out of the range of valid values.Parameter name: index" in thef ollowing function in my code
{
indexStart++;
indexStop++;
}
myTable.Controls.AddAt(indexCount, PaddingItem());
can any one help me
Ensure that this.Controls actually contains at least 1 element.
eg.
Table myTable;
if (this.Controls.Count > 0)
myTable = (Table)this.Controls[0];