Home Forums WinForms controls Xceed Grid for WinForms Dynamic selection forecolor Reply To: Dynamic selection forecolor

User (Old forums)
Post count: 23064

Unfortunately, this is not possible.  Changing the SelectionForeColor changes it for the whole row.  And setting it to Transparent means the text will not be visible.

The only thing I see you could do is to set the SelectionForeColor to the ForeColor of the CurrentCell when its changes.


    void gridControl1_CurrentCellChanged( object sender, EventArgs e )
      gridControl1.SelectionForeColor = gridControl1.CurrentCell.ForeColor;

Imported from legacy forums. Posted by André (had 168 views)