Hi,
i am developing vb.net2010 application.my application share market based application.my question,i am using datagrid view control 4 row and 3 col ( stockname,price,select) last col add buttons.i need button click automatic values updated every second pls help me.
my code :
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim metaRTOpen As New Threading.Thread(AddressOf OpenData)
metaRTOpen.Priority = Threading.ThreadPriority.Highest
metaRTOpen.Start()
End Sub
Private Sub DGridStock_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGridStock.CellClick
If e.ColumnIndex = 2 Then
x = DGridStock.CurrentCellAddress.Y
y = DGridStock.CurrentCellAddress.X
DGridStock.Rows(x).Cells(y - 1).Value = ComboBox1.Text
DGridStock.Rows(x).Cells(y).Style.ForeColor = Color.Green
DGridStock.Rows(x).Cells(y).Style.BackColor = Color.Red
Symbol = ComboBox1.Text
Timer1.Start()
End If
End Sub