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);
}