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.
Hi,
We are using data bound grid, and we've implemented sort of "multiple selection" - several rows can be selected, and they are painted with different colors. Grid is bounded to dataset, and when current position in binding context changes, grid "forgets" what prevuously was selected. We need to keep those rows selected. What is the best way to do it ?
Alex.
ADAdministrator Syncfusion Team July 30, 2003 08:00 AM UTC
You would have to provide these colors dynamically in PrepareViewStyleInfo. In the handler, if e.RowIndex is points to a row you want colored, and if e.ColIndex > 0, then set e.Style.BackColor to the desired color.
So, you would have to maintain a list of colored rows, and the color for each of the rows, and use this in PrepareViewStyleInfo to provide the proper color based on e.RowIndex.