DataGrid bug

  • Thread starter Thread starter another
  • Start date Start date
A

another

Guest
I am trying to use a DataGrid component, linked to a DataSet with 1 Table containing 2 Columns, and keep getting the following error whenever I close the form ...

"Invalid Operation Exception : Cannot call Invoke or InvokeAsync on a control until the window handle is created"

As this occurs before I even add any code of my own it must be a bug in the DatGrid component itself.

Can anyone shed any light on this problem ?
 
Thank you for responding.

At the moment I just dropped a DataGrid component and a DataSet component onto a form. Added a table with two columns to the DataSet and then linked the DataSource property of the DataGrid to the Table. The first column of the table is set to autoincrement and is readonly.

All this I did with the forms designer.

The data grid correctly shows the first row of the table with the two columns. No code of my own added yet.

When closing the form I get the error message as stated previously.

I am using Win 2000 with net framework sp2 installed.

All I want to do is create a form to edit 80 data values. No database involved. I will have to forget about the DataGrid and use text edit boxes instead.
 
Back
Top