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 herepublic 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 }; }
private void LoadData() { _histories = _controller.GetAll(_personId, _companyId); _BindingSource = new BindingSource { DataSource = _histories }; }
I just posted this which may help
this is for populating a combo box with an enum
http://forums.infragistics.com/forums/p/68648/347675.aspx#347675
theres also a link to the original article the work was based on which may help