The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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!
ADAdministrator 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.