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

change style in virtual grid

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

1 Reply

AD Administrator Syncfusion Team 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.

Live Chat Icon For mobile
Up arrow icon