Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Show text portion in instead of numerical of enum in column
posted

I am using ultragrid and I want to show the text portion of a enum property.  I tried doing it like so

 

 

private void MapToLevel()
{
   foreach (var row in HistoryGrid.Rows)
    {
       row.Cells["LevelId"].Value = row.Cells["LevelId"].Value.ToString();
    }
}

this doesn't change anything.

this method is being called here

public new void Refresh()  { LoadData();   HistoryGrid.DataSource = null;   HistoryGrid.DataSource = _BindingSource;   HistoryGrid.DataBind(); MapToLevel(); }

private void LoadData()
{
   _histories = _controller.GetAll(_personId, _companyId);
   _BindingSource = new BindingSource { DataSource = _histories };
}


 

Parents
No Data
Reply Children
No Data