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

Retreive BackColor in BoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

23163 Jan 5,2005 10:11 PM UTC Jan 6,2005 12:08 AM UTC WinForms 1
loading
Tags: GridControl
Madhavi Balusu
Asked On January 5, 2005 10:11 PM UTC

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 6, 2005 12:08 AM UTC

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.

CONFIRMATION

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.

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

;