1.把一个对像集合绑定到DataGrid,Column.Name的排列顺序不是我想要的,我想重新排一下列的顺序,怎么做?
2.datagrid增加一行数据后,就初始话一个对象并将数据写入对象,怎么做?我的代码类似于:
public class BranchInfo
{
public BranchInfo()
{
} private int branchNum;   // 分支唯一编号
private int startPoint ;  //分支首节点
private int endPoint ;     // 分支尾节点
public int BranchNum 
{
get{
return branchNum;
}
}
public int StartPoint 
{
get{
return startPoint;
}
set{
startPoint = value;
}
}
public int EndPoint 
{
get{
return endPoint;
}
set{
endPoint = value;
}
}
}