Hi all,
I'm getting an exception that says a column does not exist in a table when
it clearly does.
I'm using DataGridTextBoxColumns in DataGridTableStyle and setting the
correct MappingName, if I click on continue on the exception the program
still works as expected. I tried putting in a field in the MappingName which
I know does not exist and I don't get the exception it just does not show
the column. But I know this field exists it shows the column but i always
get the exception:
System.ArgumentException: Column 'PurID' does not belong to table PURORDERS.
at System.Data.DataRow.CheckColumn(DataColumn column)
at System.Data.DataRowView.GetColumnValue(DataColumn column)
at System.Data.DataColumnPropertyDescriptor.GetValue( Object component)
at
System.Windows.Forms.DataGridColumnStyle.GetColumn ValueAtRow(CurrencyManager
source, Int32 rowNum)
at System.Windows.Forms.DataGridTextBoxColumn.Edit(Cu rrencyManager
source, Int32 rowNum, Rectangle bounds, Boolean readOnly, String
instantText, Boolean cellIsVisible)
at System.Windows.Forms.DataGrid.Edit(String instantText)
at System.Windows.Forms.DataGrid.Edit()
at System.Windows.Forms.DataGrid.OnEnter(EventArgs e)
at System.Windows.Forms.Control.NotifyEnter()
at System.Windows.Forms.ContainerControl.UpdateFocuse dControl()
Has anybody else experienced this?
Thanks
Gav