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

Set range of cells

How does one set a range of cells with 1 command? For example, how do I set the backcolor of all the cells in the first 3 rows. Thanks, Steve

1 Reply

AD Administrator Syncfusion Team June 17, 2005 05:58 PM

You can use GridControl.ChangeCells to set a style to an arbitrary GridRangeInfo. You can only directly set style properties on arbitrary ranges in a non-virtual GridControl. GridStyleInfo style = new GridStyleInfo(); style.BackColor = Color.Red; this.gridControl1.ChangeCells(GridRangeInfo.Rows(1,3), style);

Loader.
Live Chat Icon For mobile
Up arrow icon