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

Retreive BackColor in BoundGrid

Thread ID:





23163 Jan 5,2005 05:11 PM Jan 5,2005 07:08 PM Windows Forms 1
Tags: GridControl
Madhavi Balusu
Asked On January 5, 2005 05:11 PM

How do I *retrieve* the row colors in a databound grid? I need to create a gridcontrol from a GridDataBoundGrid and need to copy the colors from the source grid to destination grid. Thanks!

Administrator [Syncfusion]
Replied On January 5, 2005 07:08 PM

You normally do not ''set'' row colors in a GridDataBoundGrid. You would handle PrepareViewStyleInfo and dynamically provide the backcolor of cells on demand. In this manner, you can provide row colors. You can get the column colors through the GridBoundColumn.StyleInfo.BackColor property. You get these from either the grid.GridBoundColumns collection or the grid.Binder.InternalColumns collections depending upon whther you have explicitly added GridBoundColumns or not.


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.

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.