We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Change alternating rows color in MulticolumnComboBox

I Syncfusion
How I can change the back color in the rows?  
I mean exist the posibility of change the color in alternating rows property like in DataGridView AlternatingRowsDefaultCellStyle property
I wanna change the color.

3 Replies

NK Neelakandan Kannan Syncfusion Team June 26, 2014 05:38 AM UTC

Hi Mesta,

Thank you for your interest in Syncfusion products.

If you want to change the alternate rows back color, you can use the QueryCellInfo event.

Please refer the below code:

this.gridControl1.QueryCellInfo += new GridQueryCellInfoEventHandler(gridControl1_QueryCellInfo);

void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)

{

If( e.RowIndex > 0 &&  e.RowIndex % 2 == 0)

{

e.Style.BackColor = Color.DeepPink;

}

}

Please let me know if you have any concerns.

Regards,

Neelakandan



IM I Mesta June 27, 2014 02:45 PM UTC

Hi Syncfusion

I did it, I used this code. Thank you so much. 



NK Neelakandan Kannan Syncfusion Team July 1, 2014 05:29 AM UTC

Hi Mesta, 

Thank you for your update. 

Please let us know if you have further assistance on this. 

Regards,

Neelakandan


Loader.
Live Chat Icon For mobile
Up arrow icon