public class SalesPersonName : NotificationObject , IComparable
{
private string firstName;
public string FirstName
{
get { return firstName; }
set { firstName = value; RaisePropertyChanged("FirstName"); }
}
private string lastName;
public string LastName
{
get { return lastName; }
set { lastName = value; RaisePropertyChanged("LastName"); }
}
public override string ToString()
{
return firstName + " " + lastName;
}
public int CompareTo(object obj)
{
SalesPersonName name = (SalesPersonName)obj;
return String.Compare(name.FirstName, this.FirstName);
}
}
<syncfusion:GridTextColumn MappingName="Name" UseBindingValue="True" /> |