get look up a string given a func<T,object> param
- by Sammy
given this code
namespace GridTests
{
public class Grid<T>
{
IEnumerable<T> DataSource { get; set; }
IList<Column> Columns = new List<Column>();
class Column
{
public string DisplayText { get; set; }
Func<T, object> Rowdata { get; set; }
}
}
}
I need to be able to loop through the columns collection and get the Rowdata's object value using the DisplayText.
Thanks