how to filter data for ListBox?


i have listbox constantlly refreshing data.

what options apply filtering?

the listbox self don't have support of filtering data, display data in order data present in data structure bind it. need explicit filtering , linq easy way filter data, if data source of type ienumerable, can use linq custom filtering.

you can use inotifypropertychanged make sure ui updated based on changes property (will update controls binds specific property), , use observerablecollection<t>: http://msdn.microsoft.com/en-us/library/ms668604.aspx which can notify when collection changed , update ui automatically, example listbox or datagrid etc.

can provide use more specifc problem want solve, example when want filter data, , when want listbox updated, kind of filtering want use, can give real scenario? give or different solutions problem.



Silverlight  >  Programming Silverlight with .NET – General



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........