<p>I would like to add a backcolor for specific line depending of a Property of the object binded.</p>

<p>The solution I have (and it works) is to use the Event <code>DataBindingComplete</code> but I do not think it's the best solution.</p>

<p>Here is the event:</p>

<pre><code>    private void myGrid_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e)
    {

        for (int i = 0; i &lt; this.myGrid.Rows.Count; i++)
        {
            if((this.myGrid.Rows[i].DataBoundItem as MyObject).Special)
            {
                this.myGrid.Rows[i].DefaultCellStyle.BackColor = Color.FromArgb(240, 128, 128);
            }
        }
    }
</code></pre>

<p>Any other option that would be better?</p>

I don't really work with WinForms that much, but in ASP you would use the 'ItemDataBound' method.  Is there something similar in windows forms for a DataGrid?
If so, in that method, the event arguments would contain the item that was databound, along with the DataGrid row.  So the general code would look something like this (syntax is probably off):
```
```
if(((MyObject)e.Item.DataItem).Special)
   e.Item.DefaultCellStyle.BackColor = Color.FromArgb(240, 128, 128);
```
```