Posted 17 May 2020, 10:16 am EST
In C1FlexGrid is possible to change the backcolor of current row?
Forums Home / ComponentOne / WinForms Edition
Posted by: psergio.p on 17 May 2020, 10:16 am EST
Posted 17 May 2020, 10:16 am EST
In C1FlexGrid is possible to change the backcolor of current row?
Posted 17 May 2020, 4:52 pm EST
Hi Paulo,
You can use the code use snippet given below to achieve the same in FlexGrid:
grid.SelectionMode = SelectionModeEnum.Row;
grid.Styles.Highlight.BackColor = Color.LightGreen;
grid.Styles.Focus.MergeWith(grid.Styles.Highlight);
I have attached a demo sample implementing the same, please have a look.
In case if you need any other help, please let us know.
Regards,
Prabhat Sharma.
FlexGridStyleRow.zip