Manipulating DisplayMember before it is displayed

Posted by DanDan on Stack Overflow See other posts from Stack Overflow or by DanDan
Published on 2010-05-01T12:18:26Z Indexed on 2010/05/01 12:27 UTC
Read the original article Hit count: 209

Filed under:
|
|
|

Let's say I am using databinding like this:

List<Entity> Entities = <some data>

entityBinding.DataSource = Entities;
lstEntities.DisplayMember = "Description";

which works fine. However, I want to manipulate the string coming back as the Entity's "Description". How can I call a function on DisplayMember?

© Stack Overflow or respective owner

Related posts about c#

Related posts about databinding