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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Set range of cells

Thread ID:





30469 Jun 17,2005 07:23 PM UTC Jun 17,2005 10:58 PM UTC WinForms 1
Tags: GridControl
Asked On June 17, 2005 07:23 PM UTC

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

Administrator [Syncfusion]
Replied On June 17, 2005 10:58 PM UTC

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);


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon