MS grid has a property called alternatingbackcolor, which basically let me easily define the alternating backcolor for my grid. However, I cannot find it in Essential grid. SO what is the easiest way(or the most proper way) in essential grid to define an alternating backcolor?
Thanks
Chris
AD
Administrator
Syncfusion Team
February 3, 2004 01:07 PM UTC
In the 2.0 GridGroupingControl which is in beta now, you can set a property to handle this.
But in GridDataBoundGrid, you have to handle an event. Her eis a KB article with a code snippet.
http://www.syncfusion.com/Support/article.aspx?id=10418
AD
Administrator
Syncfusion Team
February 3, 2004 01:52 PM UTC
Thanks.
It would be nice to have it in the later version. Essential Grid should be a package with improvement on MS grid, but without reducing its original functionality.
>In the 2.0 GridGroupingControl which is in beta now, you can set a property to handle this.
>
>But in GridDataBoundGrid, you have to handle an event. Her eis a KB article with a code snippet.
>http://www.syncfusion.com/Support/article.aspx?id=10418
AD
Administrator
Syncfusion Team
February 3, 2004 02:46 PM UTC
There are advantages for having the PrepareViewStyleInfo event.
You cannot only color every other row, but the same technique can color every third row, or every row where column 5 is greater than 50, or ???. It gives you a great deal of flexibilty for a single event.
The same technique works to color specific cells based on some criteria.
If you try to do any of these things with the Windows Forms DataGrid, you would have to do much more that catch an event.