Hi,
I've a radlistbox and I set the datasource:
List<CMListItem> obCMListItem = new List<CMListItem>(); (where CMListItem is a class).
m_radListBox.DataSource = obCMListItem.
This obCMlistItem has ItemName,Itemdescription and Item code as 3 elements.
I need to set my datatextfield of the radlistbox by combining the 2 elements of the class( combining ItemName and Itemdescription).
If I try to do the below approach, I get an error:
m_radInstitutionLstBox.DataTextField = String.Format("{0},{1}", Properties.Resources.Ttl_Col_ItemName , Properties.Resources.Ttl_Col_ItemDescription);
m_radInstitutionLstBox.DataValueField = Properties.Resources.Ttl_Col_ItemName;
m_radInstitutionLstBox.DataSource = obCMListItem;
m_radInstitutionLstBox.DataBind();
How can i handle this situation. Pls help me with code in c#
Thanks,
ZR