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
close icon

How to overwrite cssclass of column?

Hello,

I have set AutoFormat to Office Silver but would like to overwrite a few cells. I tried this:

GridPropertiesModel gridModel = (GridPropertiesModel)this.ViewData["GridModel"];
gridModel.QueryCellInfo += (sender, args) =>
{
if (args.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || args.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell)
{
if (args.TableCellIdentity.ColIndex == 1)
{
args.Style.CssClass = "RowHeader";
args.Handled = true;
}
}
};

Unfortunately the class is not set.

Kind regards
Benno

1 Reply

BM Balaji M Syncfusion Team August 20, 2009 01:15 PM UTC

Hi Benno,

Thank you for your interest in Syncfusion products.

The issue "QueryCellInfo: set properties show no result" reported by you is suspected to be a defect. We have forwarded this to our Developement team for further analysis. We will update you with our Development team's reponse in two business days.

Please follow up the Direct-Trac incident#59250 for more further.

Regards,
M. Balaji

Loader.
Live Chat Icon For mobile
Up arrow icon