I am defining the data source of a Telerik RadGridView control in its NeedDataSource event. The data source in question is an IEnumerable collection of objects.
Say, for example, the column order in the RadGridView is Title | Description | Date. If I have the following objects in my collection...
class Obj{
public DateTime Date {get;set;}
public string Title {get;set;}
public string Description {get;set;}
}
How do I ensure when using RadGridView1.DataSource();that the object property values are assigned to the RadGridView columns in the correct order?