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

Retreive BackColor in BoundGrid

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!

1 Reply

AD Administrator Syncfusion Team 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.

Live Chat Icon For mobile
Up arrow icon