Aimee,
Ya, I wasn't sure what you were hinting at. From my understanding, if you make a datatable equal to another it creates a pointer. But if I clone, I think that maybe really cpu intensive.
1. Get live data
2. Process in seperate class to create new data.
3. Data is changed in the datatable.
I get data and convert it into something else. I track what row through out and...
User Profile
Collapse
-
Aimee, thank you for your reply.
Are you suggesting something like this:
...Code://class variables DateTime uTime = DateTime.Now; double mySecCheck; DataTable dt1; DataTable dt2; private void procDGVTimer() { DateTime eTime = DateTime.Now; TimeSpan dSpan = eTime - uTime;Leave a comment:
-
DGV refresh/update
Does anyone know how to stop a datagridview from either stopping the display update or to slow down the refresh rate on it?
I have a lot of data I would like to display but I only want it to update like once a second or something.
dgv1.datasource = myDT;
is updating every time the datable updates.
TIA -
Thank you for your reply. This section:
Are three different ways I tested updating the datagridview. Both the myDT.Rows[0][2] and dataGridView1[2,0] point to the same location. That cell has data.Code:# //myDT.Rows[0][2] = i; # //dataGridView1.Rows[0].Cells[2].Value = i; # this.dataGridView1[2, 0].Value = i;
All three of the attempts listed here work...Leave a comment:
-
Datagrid view Exception error after datatable update
I keep getting index out of range errors when updating values in a datatable. Please see code below and offer any suggestions on a solution. In general, if the updates are slow, the datagridview does not throw exceptions. When the updates are more frequent, exceptions get thrown.
I've tried several different methods of updating the datagridview, as can be seen in the code. Any suggestions would be greatly appreciated.
... -
-
Program not responding
Anyone have any tips on how to make a program stop appearing as "Not Responding"?
Delegates, multithreading. .. are there other options i'm missing? -
-
ALGLIB Levenberg-Marquardt algorithm for multivariate optimization
Has anyone used this? I'm trying to convert the C# version to VB.net and i'm kinda clueless on how code this section:
Functions in vb.net return a value to a variable. There is no return field on the declaration line and it's used as a sub in the following code. I'm not sure what i'm supposed to do with this part of the code.
TIA... -
-
Code:select e1.position + e2.position Into DP.dbo.CP from DP.dbo.excelDp e1, DP.dbo.excelDp e2 where e1.char1 = e2.char1 and e1.char2 = e2.char2 and e1.account = 'xx5' and e2.account = 'xx3'
the code returns a column. The first column is the result of the arithmetic operation but has no column name. I found a solution in my application code but it takes one full iteration through...Leave a comment:
-
Select/Insert/Update a column with out a header
Hey all, i'm trying to add two columns and send them into a column field in another table.
But, i'm getting an error saying that my column doesn't have a header. Any suggestions on how into insert query results that are teh result of computations? TIA -
Ok, got a solution. I originally got the cell leave business online. Using cellvaluechange d is a lot easier (at least to me).
...Code:Private Sub datagridview1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellValueChanged DataGridView1(e.ColumnIndex, e.RowIndex).Style.BackColor = Color.Yellow Dim
Leave a comment:
-
I'm now confronted with a new problem. I can't seem to be able to get the value of a cell and assign that value to a datatable. In the following code, i correctly get the column and row indexes but 'tempvalue' comes up blank. Any suggestions?
...Code:Private Sub datagridview1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellLeave MsgBox(e.ColumnIndex)Leave a comment:
-
I've found update method that works great. I tested this out with 20 columns and a ton of rows. The refresh was very slow in comparison. Refresh did not keep up with counter where as the update did.
...Code:Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick incrementNumber() dt.Rows(0).Item(0) = testNumber dt.Rows(0).Item(1) = testNumber *Leave a comment:
-
I would be very interested in something like that. Are there any books or websites you could recommend?Leave a comment:
-
I got it to work with this:
...Code:Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick incrementNumber() dt.Rows(0).Item(0) = testNumber 'myBindingSource.ResetItem(dt.Rows(0).Item(0)) DataGridView1.Refresh() If testNumber = 10 Then MsgBox("pause")Leave a comment:
-
Update Datagridview with new data VB.net
Hey all, trying to update a cell in a dgv when I have a new value for it. I'm not sure how to go about it. I've looked online but, like the books I have, there isn't much information on dgvs or controls.
I've found a suggestion to use resetItem but I must be using it wrong. Any suggestions would be great either on the code in particular or resources online.
My main goal is to figure out how to update individual... -
Encode[Byte] vs Binary VB.net TCP/IP
Hey all, i'm looking to write my first server and client application. I'm looking online and through a couple of books and have come across a couple of ways that it appears people are handling data.
What would be the the fastest and/or most reliable way to transmit strings and floats?
Is binary mostly for media? -
try-catch time?
Do try/catch take a lot of time? It seems like when I use them it slows the program down quite a bit.
No activity results to display
Show More
Leave a comment: