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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Changing Cell''s Style Properties using the GridStyleInfo

Thread ID:





24886 Feb 13,2005 03:33 PM UTC Feb 13,2005 03:47 PM UTC WinForms 1
Tags: GridControl
Asked On February 13, 2005 03:33 PM UTC

I was trying to change individual cells styles like backcolor, or text color. using grd.Model.GetCellInfo(Row, Col, StyleInfo) setting the properties and then : grd.Model.SetCellInfo(Row, Col, StyleInfo, StyleModifyType.Changes) But no changes take effect. Why and is there is a better way to do that? Thankx

Administrator [Syncfusion]
Replied On February 13, 2005 03:47 PM UTC

Is grd a GridControl? If not, the above code will not work. You cannot set individual cell style properties (other than CellValue and Text) in a GridDataBoundGrid. If it is a GridControl, try using StyleModifyType.Override.


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

Live Chat Icon For mobile
Live Chat Icon