GridView databinding error with Generic classes
If you get this error: A field or property with the name 'xyz' was not found on the selected data source
You need to declare public properties with get, set in your class for it to work because GridView uses Reflection when databinding. For example:
public class EmployeeDetails
{
public string EmployeeName {get; set; }
// etc
}
By Mikhail Esteves | June 2nd, 2011 in
General

