title: ObjectListView - Rows are formatted only after MouseOver on Items
body: <p>I am in need of some assistance or advice/experience of someone else.
  Here is what I'm struggling with:</p>
  
  <p>In my project an objectlistview olvDifference is used to visualize items (<code>Type Conflict</code>) of a list. So far I was able to add the Columns needed and format them properly. But the format provided with </p>
  
  <pre><code>private void ConflictFormatRow(object sender, 
  BrightIdeasSoftware.FormatRowEventArgs e)
  {
    Conflict conflict = (Conflict)e.Model;
    if (conflict == null) return;
    if (conflict.resolution == ConflictResolution.None) e.Item.BackColor = conflictColor;
    else if (conflict.resolution == ConflictResolution.UseMine) e.Item.BackColor = mineColor;
    else if (conflict.resolution == ConflictResolution.UseTheirs) e.Item.BackColor = theirsColor;
    else e.Item.BackColor = System.Drawing.Color.White;
    if(e.Model == olvConflictList.SelectedObject)
    {
      BrightIdeasSoftware.RowBorderDecoration a = new BrightIdeasSoftware.RowBorderDecoration();
      a.BorderPen.Color = Color.Black;
      a.BorderPen.Width = 3;
      a.CornerRounding = 0;
      a.FillBrush = Brushes.Transparent;
      e.Item.Decoration = a;
    }
    else
    {
      BrightIdeasSoftware.RowBorderDecoration b = new BrightIdeasSoftware.RowBorderDecoration();
      b.BorderPen.Color = Color.Transparent;
      b.BorderPen.Width = 0;
      b.CornerRounding = 0;
      b.FillBrush = Brushes.Transparent;
      e.Item.Decoration = b;
    }
  }
  </code></pre>
  
  <p>In the constructor of the form (WFA), the AspectGetter is assigned and the objects to display are set.</p>
  
  <p>Designer-Generated code equals the block below:</p>
  
  <pre><code>  // 
    // olvConflictList
    // 
    this.olvConflictList.AllColumns.Add(this.olvcConflictList);
    this.olvConflictList.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
    this.olvConflictList.CellEditUseWholeCell = false;
    this.olvConflictList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
          this.olvcConflictList});
    this.olvConflictList.Cursor = System.Windows.Forms.Cursors.Default;
    this.olvConflictList.FullRowSelect = true;
    this.olvConflictList.Location = new System.Drawing.Point(780, 90);
    this.olvConflictList.Name = "olvConflictList";
    this.olvConflictList.Size = new System.Drawing.Size(286, 489);
    this.olvConflictList.TabIndex = 18;
    this.olvConflictList.UseCellFormatEvents = true;
    this.olvConflictList.UseCompatibleStateImageBehavior = false;
    this.olvConflictList.View = System.Windows.Forms.View.Details;
    this.olvConflictList.FormatRow += new System.EventHandler&lt;BrightIdeasSoftware.FormatRowEventArgs&gt;(this.ConflictFormatRow);
    this.olvConflictList.SelectedIndexChanged += new System.EventHandler(this.olvDifferenceGroups_SelectedIndexChanged);
    // 
    // olvcConflictList
    // 
    this.olvcConflictList.AspectName = "";
    this.olvcConflictList.AutoCompleteEditor = false;
    this.olvcConflictList.AutoCompleteEditorMode = System.Windows.Forms.AutoCompleteMode.None;
    this.olvcConflictList.FillsFreeSpace = true;
    this.olvcConflictList.Groupable = false;
    this.olvcConflictList.HeaderCheckBoxUpdatesRowCheckBoxes = false;
    this.olvcConflictList.Hideable = false;
    this.olvcConflictList.IsEditable = false;
    this.olvcConflictList.MinimumWidth = 50;
    this.olvcConflictList.Searchable = false;
    this.olvcConflictList.Sortable = false;
    this.olvcConflictList.Text = "Conflicts";
    this.olvcConflictList.UseFiltering = false;
    this.olvcConflictList.Width = 283;
  </code></pre>
  
  <p>The only item in the olv has no BackGroundColor (White, default):</p>
  
  <p><a href="https://i.stack.imgur.com/j4Ac5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j4Ac5.png" alt="The only item in the olv has no BackGroundColor (White, default)"></a></p>
  
  <p>After starting the process, it is shown as one can see in the pic above, but I'd expect it to be initialized as in the pic below (after I hovered over it with my mouse the first time).</p>
  
  <p>The only item in the olv has BackGroundColor <code>conflictColor</code> as assigned in the ConflictFormatRow:</p>
  
  <p><a href="https://i.stack.imgur.com/ZTlYV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZTlYV.png" alt="The only item in the olv has BackGroundColor &lt;code&gt;conflictColor&lt;/code&gt; as assigned in the ConflictFormatRow"></a></p>
  
  <p>Where do I need to improve my code? Any advices?</p>