M
malikasad
Guest
Hi friends,
Please want to loop thru each and every row of datagridview hilight current record and move forward with delay of one second in each record as I am using following code which not working properly, I used thread.sleep(1000) and its totally halted , I want moving cursor in datagridview with delay 1 second for each record thank you
int nRow;
foreach (DataGridViewRow row in dataGridView1.Rows)
{
nRow = dataGridView1.CurrentCell.RowIndex;
// row.Cells["imagedata"].Value
//if (row.Cells["firstmobile"].Value != "")
//{
// MessageBox.Show(row.Cells["firstmobile"].Value.ToString());
string SocialSN = Convert.ToString(row.Cells["firstmobile"].Value);
if (nRow < dataGridView1.RowCount)
{
dataGridView1.Rows[nRow].Selected = false;
dataGridView1.Rows[++nRow].Selected = true;
}
// Thread.Sleep(1000);
// MessageBox.Show(SocialSN);
//}
}
asad
Continue reading...
Please want to loop thru each and every row of datagridview hilight current record and move forward with delay of one second in each record as I am using following code which not working properly, I used thread.sleep(1000) and its totally halted , I want moving cursor in datagridview with delay 1 second for each record thank you
int nRow;
foreach (DataGridViewRow row in dataGridView1.Rows)
{
nRow = dataGridView1.CurrentCell.RowIndex;
// row.Cells["imagedata"].Value
//if (row.Cells["firstmobile"].Value != "")
//{
// MessageBox.Show(row.Cells["firstmobile"].Value.ToString());
string SocialSN = Convert.ToString(row.Cells["firstmobile"].Value);
if (nRow < dataGridView1.RowCount)
{
dataGridView1.Rows[nRow].Selected = false;
dataGridView1.Rows[++nRow].Selected = true;
}
// Thread.Sleep(1000);
// MessageBox.Show(SocialSN);
//}
}
asad
Continue reading...