c# - "Items collection cannot be modified when the DataSource property is set." -


having issue program adds files through form txt file issue doesn't fstream i'm thinking doesn't have deal i'm not sure problem means.

lstemployees.items.add("no records found."); 

the error message tells have set "datasource property" on "lstemployees". go "lstemployees" properties , remove datasource - or if want keep datasource, don´t try add "your own" items "lstemployees", won´t accepted.


Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -