Jump to content
Xtreme .Net Talk

DataGrid bug


Recommended Posts

Guest another
Posted

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 ?

Guest another
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...