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

change style in virtual grid

Thread ID:





20413 Oct 17,2004 06:04 PM UTC Oct 17,2004 07:36 PM UTC WinForms 1
Tags: GridControl
Asked On October 17, 2004 06:04 PM UTC

The project (CopyPaste_9300.zip) posted in ://www.syncfusion.com/Support/Forums/message.aspx?MessageID=19603 shows a way to change style. But when and I set up the grid in virtual mode (herewith the modified project), then no change occurs in style. Thank you in advance for any help. Louis test_2748.zip

Administrator [Syncfusion]
Replied On October 17, 2004 07:36 PM UTC

In a virtual grid, you are responsible for saving any cell style property you want to use. So, if you want to change style.BackColor for a cell, then in your SaveCellInfo hanlder, you will have to save this property, and then in QueryCellInfo, you have to retrieve the property you saved and set it back into the requested style. In your sample, the only thing you are saving in SaveCellInfo is CellValue. The only thing you are setting QueryCellInfo is CellValue. This is why other properties like BackColor are not being persisted.


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

Live Chat Icon For mobile
Live Chat Icon