i have a datagridview binded with the datatable via its datasource property....
now i want to add the Amount column of the dgv and display the total amount in the textbox,if the amount is greater than a certain value then i want the cell to coloured red
so i did this code and it worked great:
but my problem is that i want the red colour of the cell to blinkafter every 2 seconds....how to do this?Code:Dim i, j As Integer For i = 0 To DataGridView1.RowCount - 1 j += Me.DataGridView1.Rows(i).Cells("Amount").Value Next If j > 150 Then Me.DataGridView1.Rows(2).Cells("Amount").Style.BackColor = Color.Red End If TextBox1.Text = j.ToString
i need to handle the timer tick event for this but i am not able to do this.....
please help......
thank you




Reply With Quote