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.
Up arrow icon