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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Best practices for styling the grid

Thread ID:





75976 Aug 18,2008 10:51 PM UTC Aug 18,2008 11:45 PM UTC WPF 1
Tags: GridControl
Jeff Yang
Asked On August 18, 2008 10:51 PM UTC

Is there a way to reference brushes defined in XAML (i.e. a ResourceDictionary) when styling a particular cell on a virtual grid. For something as simple as creating a highlight background color for every other row can easily be accomplished by mod 2 the row index and then set the e.Style.Background brush to the desired color but I'm wondering if there's some solution that allows me to define these brushes declaratively in XAML.

Administrator [Syncfusion]
Replied On August 18, 2008 11:45 PM UTC

Here is a little sample that loads a brush from a Xaml resource and uses it to color odd rows.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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