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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to define alternatingbackcolor in databounddatagrid?

Thread ID:

Created:

Updated:

Platform:

Replies:

10466 Feb 3,2004 12:10 PM UTC Feb 3,2004 02:46 PM UTC Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 3, 2004 12:10 PM UTC

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

Administrator [Syncfusion]
Replied On 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

Administrator [Syncfusion]
Replied On 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

Administrator [Syncfusion]
Replied On 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.

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

;