row selection with same background color

is possible when row is selected to have all the cells with the same background color?
actually if i select one row, the cell selected have different background color (white)

i need selection like listbox for exemple

thanks

1 Reply

AR Amal Raj U Syncfusion Team April 16, 2018 12:16 PM UTC

Hi Riccardo, 

Thanks for using Syncfusion products. 

We have provided different style settings for CurrentCell apart from Selection. So, the selected cell is rendered differently than other selected cells. To have same back color for the cells in the selected row, CurrentCellStyleInfo.BackColor can be changed to SelectionStyleInfo.BackColor property. Please refer to the below code example, 

Code Snippet: 
// Initializes the Selection BackColor as CurrentCell's BackColor. 
this.sfDataGrid.Style.CurrentCellStyle.BackColor = this.sfDataGrid.Style.SelectionStyle.BackColor; 

Sample Link: 

Regards, 
Amal Raj U. 


Loader.
Up arrow icon