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
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
C#:
if (e.RowIndex >= 0)
{
DataGridViewRow row = this.dgvPGC.Rows[e.RowIndex];
if (dgvPGC != null)
lblNumber.Text = row.Cells["each_number"].Value.ToString();
}