Here is my problem. I have a class game, and i would like to bind some of the members to the datagrid, not entire object. What is better way to do it? Create another object to hold infomation, or create a datatable?
public class Game
{
public string Name {get;set; }
public string Description {get;set;}
public string FullPath {get;set;}
}
List<Game> Games = new Games { game1, game2, game3 };
dataGrid1.ItemsSource = Game; // I don't want to do this it will bind entire object.
You can still bind the whole object, turn off automatic generation of columns and create and bind columns manually.