Israel

Israel

  • 693
  • 1.3k
  • 219.5k

Five records to display on the label

May 9 2020 11:29 AM
Hi,
I have a table, datagridview and a label on my form. 
I need to display five records on my label one by one with 2 segunds of interval between them. How can I do? 
 
ID | each_number 
______________ 
1               1
2               2
3               3
4               4
5               5
  1. if (e.RowIndex >= 0)  
  2. {    
  3.     DataGridViewRow row = this.dgvPGC.Rows[e.RowIndex];  
  4.     if (dgvPGC != null)    
  5.        lblNumber.Text = row.Cells["each_number"].Value.ToString();  
  6. }
 Then to display it as I said before on the label I need to click on a button.

Answers (2)