Q: C# DataGridView how to illuminate current List I would like to highlight the method that is being implemented  on datagridview right now.
This is List :
  public List<Action> functions = new List<Action>();

And inside i have a methods.  by adding for example.
functions.Add(waypoint1);

My datagridview after add method look like :

And i just want hightlight current waypoint. 
to start list I use:
foreach (Action func in functions)
{
    func();
}

For example when func() number 2 is currenly  activated just highlight 2nd row.
When func() number 3 is currenly  activated just highlight 3rd row. I searched forum but don't find solution.Please be patient for newbie. Thank you.
EDIT 1 :
Added code of foreach loop in backgroundworker as you want.
private void DoWork_backgroundworker(object sender, DoWorkEventArgs e)
{
    while (true)
    {
        foreach (Action func in functions)
        {
            func();
        }
    }
} 

And button to start : 
private void metroButton7_Click(object sender, EventArgs e)
{
    DoWork_backgroundworker.RunWorkerAsync();
}


A: If it is ok for you that you use the Selected property for the highlighting you can use a normal for-loop (which will give you an indexer) and index the rows that belong to the items. Set simply the Selected property of that Row to true:
for (int i = 0; i < functions.Count; i++)
{
    //select the row before action is started
    dataGridView1.Rows[i].Selected = true;

    // execute your action 
    functions[i]();

    //unselect the row when job is finished
    dataGridView1.Rows[i].Selected = false;

}

EDIT:
If you want to change the selection/highlight colour use the dataGridView1.RowsDefaultCellStyle.SelectionBackColor property. Put this line before the for-loop:
dataGridView1.RowsDefaultCellStyle.SelectionBackColor = System.Drawing.Color.Black; 

