Jump to content

Overwriting Rows DataGridView Question

Recommended Posts

I am using DataGridView to display a table to the user. I am needing to constantly overwrite the rows every few seconds to update the data in the table. The issue happens when I am finished with the program and want to dispose of the DataGridView, LabVIEW crashes when I try to dispose of the DataGridView Reference ONLY when the amount of rows becomes large enough to the point the DataGridView container needs a scroll bar.

Here is the setup of my API: 

1. Configure the Amount of Columns and Column Titles.
2. Configure the Table Properties
3. Bind the DataSource
4. Configure the column Header Properties such as autosizing and minimum Column width using DataGridViewColumn (Needs to be done after binding the DataSource otherwise there is an error setting the column properties because I cannot get Item)
5. Write row data (first clears row data if there is existing row data)

All of this works fine up to the point where I am finished displaying data and want to close/dispose of the references. i.e Disposing of the DataGridView reference causes LabView to crash IF the DataGridView Table needed a vertical scroll bar.

Link to comment

Join the conversation

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

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...

Important Information

By using this site, you agree to our Terms of Use.