This question is locked. New answers and comments are not allowed.
HI,
now i have working on GridView Export, and some cell i want set different style, i have look into the styledefinition, but it was not function, you can refer to my code below. Thanks
private void AddCellValue(TableCell cell, string value) { Paragraph paragraph = new Paragraph(); cell.Blocks.Add(paragraph); Span span = new Span(); span.Text = value; if (isDateTime(value)) { Telerik.Windows.Documents.Model.Styles.StyleDefinition styleInfo = new Telerik.Windows.Documents.Model.Styles.StyleDefinition(); styleInfo.SetPropertyValue(new ExcelDateTimeStyle(), "yyyy\\-mm\\-dd\\ HH:mm:ss"); cell.Style = styleInfo; } paragraph.Inlines.Add(span); }