This is a migrated thread and some comments may be shown as answers.

Fields window fields alias

1 Answer 38 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Stefania
Top achievements
Rank 2
Stefania asked on 15 May 2014, 01:39 PM
Hi,
I need to show the fields name in my fields window with an alias. Is it possible?
My pivotgrid is populated with an object like this:

public class ReportModelObject
    {
        private string m_CompanyCode;
        private string m_CompanyDescription;
        private string m_CountryCode;
        private string m_CountryDescription;
        private string m_SiteCode;
        private string m_SiteDescription;
 
        public ReportModelObject()
        {
 
        }
 
        public string CompanyCode
        {
            get { return m_CompanyCode; }
            set { m_CompanyCode = value; NotifyPropertyChanged("CompanyCode"); }
        }
        public string CompanyDescription
        {
            get { return m_CompanyDescription; }
            set { m_CompanyDescription = value; NotifyPropertyChanged("CompanyDescription"); }
        }
        public string CountryCode
        {
            get { return m_CountryCode; }
            set { m_CountryCode = value; NotifyPropertyChanged("CountryCode"); }
        }
        public string CountryDescription
        {
            get { return m_CountryDescription; }
            set { m_CountryDescription = value; NotifyPropertyChanged("CountryDescription"); }
        }
        public string SiteCode
        {
            get { return m_SiteCode; }
            set { m_SiteCode = value; NotifyPropertyChanged("SiteCode"); }
        }
        public string SiteDescription
        {
            get { return m_SiteDescription; }
            set { m_SiteDescription = value; NotifyPropertyChanged("SiteDescription"); }
        }
         
        #region INotifyPropertyChanged Implementation
 
        [field: NonSerialized]
        public event PropertyChangedEventHandler PropertyChanged;
 
        protected void NotifyPropertyChanged(string name)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(name));
        }
 
        #endregion
         
    }

1 Answer, 1 is accepted

Sort by
0
Stefania
Top achievements
Rank 2
answered on 19 May 2014, 10:49 AM
Hi,
I found the solution here
http://www.telerik.com/forums/fieldname-captions
Tags
PivotGrid
Asked by
Stefania
Top achievements
Rank 2
Answers by
Stefania
Top achievements
Rank 2
Share this question
or