Kanhialal kk

Kanhialal kk

  • NA
  • 234
  • 339.3k

Exception from HRESULT: 0x800A017D (CTL_E_INVALIDPROPERTYARRAYINDEX) in AxMSFlexGridLib

May 11 2011 5:10 AM
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...


Answers (3)