An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in axinterop.msflexgridlib.dll
Exception from HRESULT: 0x800A017D (CTL_E_INVALIDPROPERTYARRAYINDEX)
Does anyone have any idea what the problem is?
following is the code
this.command = "SELECT * FROM Row_Perm_UperMeasurment WHERE Date =@Date and CCode =@CCode";
this.ds = this.obj.SelectDataTo_RowMethod(this.command, dt, this.code);
this.table = this.ds.Tables[0];
int num6 = 1;
foreach (DataRow row2 in this.table.Rows)
{
if (num6 >= this.flex1.Rows)
{
break;
}
num5 = 1;
while (num5 <= 13)
{
this.flex1.set_TextMatrix(num6, num5, Convert.ToString(row2[num5]));
num5++;
}
num6++;
}
in above code bold code is the line where run time exception is occurring..
any body help...
Loading
VulpesPosted May 11, 2011, 5:19 AM
I don't know whether it helped or not but I suggested then making the first argument 0 rather than 1.
To do the same here, you'd need to set num6 to 0 rather than 1.
Kanhialal kkPosted May 12, 2011, 2:30 AM
I did according to your suggestion and working properly... thanks
Sam HobbsPosted May 11, 2011, 9:57 PM