We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Message saying column doesnt exist when it does!

Thread ID:





12786 Apr 12,2004 08:36 PM UTC Apr 13,2004 05:48 PM UTC WinForms 4
Tags: GridControl
Administrator [Syncfusion]
Asked On April 12, 2004 08:36 PM UTC

I have a grid which is mapped to a table class_notes. The grid works fine and then sometimes all of a sudden i get the exception below. The column certainly DOES belong to the table, because it is able to use it just fine until it gets into this broken state, from which it doesnt recover. It is possible that this has only occured since the recent RC1, but it is hard to confirm that. ----------------- System.ArgumentException: Column ''Note_title'' does not belong to table class_notes. at Syncfusion.Windows.Forms.Grid.GridModelDataBinder.SaveCellInfo(GridSaveCellInfoEventArgs e) at Syncfusion.Windows.Forms.Grid.GridModelDataBinder.Syncfusion.Windows.Forms.Grid.IGridModelDataProvider.SaveCellInfo(GridSaveCellInfoEventArgs e) at Syncfusion.Windows.Forms.Grid.GridModel.SetCellInfo(Int32 rowIndex, Int32 colIndex, GridStyleInfo style, StyleModifyType modifyType, Boolean dontRaiseSaveCellInfoEvent, Boolean copyReferenceOnly) at Syncfusion.Windows.Forms.Grid.GridModel.SetCellInfo(Int32 rowIndex, Int32 colIndex, GridStyleInfo style, StyleModifyType modifyType) at Syncfusion.Windows.Forms.Grid.GridModel.ChangeCells(GridRangeInfo range, GridStyleInfo[] cellsInfo, StyleModifyType modifyType) at Syncfusion.Windows.Forms.Grid.GridModel.Syncfusion.Windows.Forms.Grid.IGridVolatileDataContainer.ChangeCell(Int32 rowIndex, Int32 colIndex, GridStyleInfo style) at Syncfusion.Windows.Forms.Grid.GridVolatileData.set_Item(Int32 rowIndex, Int32 colIndex, GridStyleInfo value) at Syncfusion.Windows.Forms.Grid.GridStyleInfoIdentity.OnStyleChanged(StyleInfoBase style, StyleInfoProperty sip) at Syncfusion.Styles.StyleInfoBase.OnStyleChanged(StyleInfoProperty sip) at Syncfusion.Windows.Forms.Grid.GridStyleInfo.OnStyleChanged(StyleInfoProperty sip) at Syncfusion.Styles.StyleInfoBase.SetValue(StyleInfoProperty sip, Object value) at Syncfusion.Windows.Forms.Grid.GridCellModelBase.ApplyFormattedText(GridStyleInfo style, String text, Int32 textInfo) at Syncfusion.Windows.Forms.Grid.GridStyleInfo.ApplyFormattedText(String text, Int32 textInfo) at Syncfusion.Windows.Forms.Grid.GridTextBoxCellRenderer.OnSaveChanges() at Syncfusion.Windows.Forms.Grid.GridCurrentCell.ConfirmChanges(Boolean closeDropDown) ----------- I have also got this error System.NullReferenceException: Object reference not set to an instance of an object. at Syncfusion.Windows.Forms.Grid.GridPaint.DrawClientRowCol(Int32 topRow, Int32 leftCol, Int32 bottomRow, Int32 rightCol, Graphics g, Rectangle rectClip) at Syncfusion.Windows.Forms.Grid.GridControlBase.OnDrawClientRowCol(Int32 topRow, Int32 leftCol, Int32 bottomRow, Int32 rightCol, Graphics g, Rectangle rectClip) at Syncfusion.Windows.Forms.Grid.GridPaint.DrawGrid(Graphics g, Boolean shouldClip, Rectangle rectClip) at Syncfusion.Windows.Forms.Grid.GridControlBase.OnPaint(PaintEventArgs pe)

Administrator [Syncfusion]
Replied On April 12, 2004 08:54 PM UTC

The mapping name is case sensitive. So, is your column name exactly "Note_title"? Are you using multiple threads? If so, anytime you are accessing the grid, are you using grid.InvokeRequired checks to make sure you only access the grid on the thread that created it. Threading issues can show themselves in strange ways.

Samuel Jack
Replied On April 13, 2004 11:49 AM UTC

I have been having a similar problem. It particularly manifests itself when selecting from a Combo box drop down

Administrator [Syncfusion]
Replied On April 13, 2004 02:33 PM UTC

Can you post a sample project showing the problem?

Administrator [Syncfusion]
Replied On April 13, 2004 05:48 PM UTC

not using threads and its definitely not a caseing issue in my code because it works for a while and then just stops during runtime. i have the datasource set to my own created dataview object which also maps to other controls as well as the grid. i''ll try to make a sample project at some point. -simon


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon