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

GridTableCellStyleInfo and Rows

Thread ID:





33079 Aug 12,2005 08:15 AM UTC Aug 12,2005 09:44 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On August 12, 2005 08:15 AM UTC

Hi, is it possible to set the cell type for a whole row instead of a column? For a column I do something like this GridTableCellStyleInfo valStyle = parentTD.Columns["Value"].Appearance.AnyRecordFieldCell; injStyle.Format = "##.00"; Is there something similar for a whole row?? Cheers, Markus

Administrator [Syncfusion]
Replied On August 12, 2005 09:44 AM UTC

You cannot set a ''rowstyle'' for abirtary records. You can set row styles for every other record using Appearance.RecordFieldCell and Appearance.AlternateRecordFieldCell. Also, if you can write a logical expression based on values in the record that picks out the particular reords you want to have this style, then you can add a ConditionalFormat to the TableDescriptor.ConditionalFormat collection to accomplish this. The only way to set a style on an arbitrary record is to handle the QueryCellStyleInfo event. In your handler, you can check to see if e.TableCellIdentity.DisplayElement is a GridRecordRow and if e.TableCellIdentity.DisplayElement.ParentRecord is the arbitray record you want, then you can set the properties of e.Style to affect the look of the row.


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