|116839||Jun 16,2014 05:45 PM UTC||Jun 30,2014 04:39 AM UTC||WinForms||3|
Thanks for your interest in Syncfusion Products.
If you want to change the background color , you can use BackColor property. You can change the backcolor for alternate rows by QueryCellInfo event. Please refer the below code.
Code Snippet[C#] :
this.gridControl1.QueryCellInfo += new Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventHandler(gridControl1_QueryCellInfo);
void gridControl1_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
if (e.RowIndex % 2 == 0 && e.RowIndex!=0)
e.Style.BackColor = Color.Red;
Please let us know if you have any concern.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
or the page will be automatically redirected to sign-in page in 10 seconds.