Dynamic TableCell format

Hello,


Is there any way I can format the text of a table cell dynamically?


Let's say I have this class in my Users data source:

public class Person

{

public string Name { get; set;}

public DateTime Date { get; set;}

public string UserDateFormat { get; set;}

}


Is there any way to do something like this?


public void OnBeforeTableCellPrint(object sender, EventArgs e)

{

var person = ??? //get the person object somehow?

var cell = ??? //get the cell somehow?

cell.Text = person.Date.ToString(person.UserDateFormat);

}

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.