Guest another Posted October 2, 2002 Posted October 2, 2002 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 ? Quote
Moderators Robby Posted October 2, 2002 Moderators Posted October 2, 2002 What method are you using for the databind? Quote Visit...Bassic Software
Guest another Posted October 2, 2002 Posted October 2, 2002 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.