Bug Report B132664
Visible to All Users

Exception occurs when deleting a cell from the XRTable in the report designer

created 16 years ago

get the following exception
 Property accessor 'BackColor_' on object 'xrTableCell2' threw the following exception:'Object does not match target type.'
when try and delete a table cell in a report
Steps to Reproduce:
just create a table from menu and delete one of the cell
Actual Results:
above screen shot
====
The error occured:
     Type: TargetInvocationException
     Message: Property accessor 'BackColor_' on object 'xrTableCell2' threw the following exception:'Object does not match target type.'
     Data: 0 entries
     Stack trace:
   at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component)
   at DevExpress.XtraVerticalGrid.Data.PGridDataModeHelper.GetValue(ITypeDescriptorContext context)
   at DevExpress.XtraVerticalGrid.Data.PGridDataModeHelper.GetCellValueCore(RowProperties props, Int32 recordIndex)
   at DevExpress.XtraVerticalGrid.VGridControlBase.GetCellValue(RowProperties props, Int32 recordIndex)
   at DevExpress.XtraVerticalGrid.VGridControlBase.GetCellValue(BaseRow row, Int32 recordIndex)
   at DevExpress.XtraVerticalGrid.ViewInfo.BaseRowViewInfo.GetRowCellValue(RowValueInfo rv)
   at DevExpress.XtraVerticalGrid.ViewInfo.BaseRowViewInfo.UpdateCellData(RowValueInfo rv, FormatInfo format)
   at DevExpress.XtraVerticalGrid.ViewInfo.BaseRowViewInfo.CalcRowValueInfo(RowProperties p, Rectangle r, BaseViewInfo vi, Int32 recordIndex, Int32 cellIndex)
   at DevExpress.XtraVerticalGrid.ViewInfo.EditorRowViewInfo.CalcValuesInfo(BaseViewInfo vi, BaseRow nextRow)
   at DevExpress.XtraVerticalGrid.ViewInfo.BaseViewInfo.CalcBandRowsViewInfo(Int32& firstRowIndex, Rectangle br, Int32 bandIndex, Int32 bandRowCount)
   at DevExpress.XtraVerticalGrid.ViewInfo.BaseViewInfo.CalcRowsViewInfo()
   at DevExpress.XtraVerticalGrid.ViewInfo.BaseViewInfo.Calc()
   at DevExpress.XtraVerticalGrid.VGridControlBase.UpdateLayout()
   at DevExpress.XtraVerticalGrid.VGridControlBase.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
     ----------------
     InnerException:
               Type: TargetException
               Message: Object does not match target type.
               Data: 0 entries
               Stack trace:
   at System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component)
               InnerException is null
--------------------------------------------------------------------------------
Loaded assemblies
Expected Results:
cell just deleted

Comments (1)
Dennis Garavsky (DevExpress) 16 years ago

    Hi Paul,
    Thank you for the report. We have reproduced this problem and it looks like a bug. This requires additional research from our side.
    Unfortunately, there is no good workaround for this problem. We are working on this. Please bear with us.
    Thanks,
    Dennis

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.