<c1:C1FlexGrid x:Name="RYB" ItemsSource="{Binding SP,Mode=TwoWay}" HorizontalAlignment="Left" Margin="662,29,0,0" VerticalAlignment="Top" Height="477" Width="446">
<c1:C1FlexGrid.Columns>
<c1:Column Header="姓名" Binding="{Binding Person_Name,Mode=TwoWay}"/>
<c1:Column Header="电话" Binding="{Binding Tel,Mode=TwoWay}"/>
</c1:C1FlexGrid.Columns>
</c1:C1FlexGrid>
class Person:NotificationObject
{
private string bmname;
public string BmName
{
get { return bmname; }
set
{
bmname = value;
this.RaisePropertyChanged("BmName");
}
}
private string person_name;
public string Person_Name
{
get { return person_name; }
set
{
person_name = BmName + "-" + value;
this.RaisePropertyChanged("Person_Name");
}
}
private string tel;
public string Tel
{
get { return tel; }
set
{
tel = value;
this.RaisePropertyChanged("Tel");
}
}
}
不知道怎么上传文件,只能复制一小部分代码了 |