G
Guest
HI,
I am have attached DataGrid to DataSets.
When I try to hit delete key, and then closing form gives me following error
message
Cannot access a disposed object name "DataGridTextBox"
Object name "DataGridTextBox" .
Details
--------------------------------------------------------------------
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ObjectDisposedException: Cannot access a disposed object named
"DataGridTextBox".
Object name: "DataGridTextBox".
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.TextBoxBase.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.TextBox.GetLength()
at System.Windows.Forms.TextBoxBase.set_SelectionStart(Int32 value)
at System.Windows.Forms.TextBox.SelectInternal(Int32 start, Int32 length)
at System.Windows.Forms.TextBoxBase.SelectAll()
at
System.Windows.Forms.DataGridTextBox.set_IsInEditOrNavigateMode(Boolean value)
at System.Windows.Forms.DataGridTextBoxColumn.EndEdit()
at System.Windows.Forms.DataGridTextBoxColumn.Commit(CurrencyManager
dataSource, Int32 rowNum)
at System.Windows.Forms.DataGrid.CommitEdit()
at System.Windows.Forms.DataGrid.EndEdit()
at System.Windows.Forms.DataGrid.OnLeave_Grid()
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
I appreciate you help.
Thanks,
Jevelson
I am have attached DataGrid to DataSets.
When I try to hit delete key, and then closing form gives me following error
message
Cannot access a disposed object name "DataGridTextBox"
Object name "DataGridTextBox" .
Details
--------------------------------------------------------------------
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ObjectDisposedException: Cannot access a disposed object named
"DataGridTextBox".
Object name: "DataGridTextBox".
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.TextBoxBase.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.TextBox.GetLength()
at System.Windows.Forms.TextBoxBase.set_SelectionStart(Int32 value)
at System.Windows.Forms.TextBox.SelectInternal(Int32 start, Int32 length)
at System.Windows.Forms.TextBoxBase.SelectAll()
at
System.Windows.Forms.DataGridTextBox.set_IsInEditOrNavigateMode(Boolean value)
at System.Windows.Forms.DataGridTextBoxColumn.EndEdit()
at System.Windows.Forms.DataGridTextBoxColumn.Commit(CurrencyManager
dataSource, Int32 rowNum)
at System.Windows.Forms.DataGrid.CommitEdit()
at System.Windows.Forms.DataGrid.EndEdit()
at System.Windows.Forms.DataGrid.OnLeave_Grid()
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
I appreciate you help.
Thanks,
Jevelson