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. Image for the cookie policy date

To color a row (multicolumn) and refresh

Hi, I color a row (with multicolumns) in dgrResults_PrepareViewStyleInfo() method by the following: e.Style.BackColor = Color.Silver; However, I scroll horizontalScroll, verticalScroll, this backcolor become White. How to keep "Silver" color when clicking the scrollbars? Please help! Thanks!

1 Reply

AD Administrator Syncfusion Team May 18, 2005 02:10 PM UTC

Exactly under what conditions do you set e.Style.BackColor = Color.Silver; Do they vary when you scroll? If so, you will have to come up with a different way to identify when to set this color. Here is a little sample that seems to scroll teh silver cell OK. What are you doing differently? http://www.syncfusion.com/Support/user/uploads/GDBG_SColl_dab7e62f.zip

Live Chat Icon For mobile
Up arrow icon