ret*_*ide 1 c# wpf binding datagrid
这是我的问题.我有一个类游戏,我想将一些成员绑定到datagrid,而不是整个对象.有什么更好的方法呢?创建另一个对象以保存信息,或创建数据表?
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.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1462 次 |
| 最近记录: |