I am trying to source a field from a Method instead of a Property on the Object, is there anyway to accomplish this?
public class MyObject()
{
public PropertyA{get;set;}
public string GetValue(string Name)
{
return "XYZ";
}
}
In my Dynamic Report I am trying to do something like:
rowTextBox.Value = "=GetValue(\"" + columns[i].Name +"\")";
dataTable.DataSource = new List<MyObject>();
But it doesn't appear to find and execute the method. Any ideas?
public class MyObject()
{
public PropertyA{get;set;}
public string GetValue(string Name)
{
return "XYZ";
}
}
In my Dynamic Report I am trying to do something like:
rowTextBox.Value = "=GetValue(\"" + columns[i].Name +"\")";
dataTable.DataSource = new List<MyObject>();
But it doesn't appear to find and execute the method. Any ideas?