This project is read-only.

ListView.Select(string column,string value)?

Feb 20, 2012 at 1:43 AM

I used the ListView.Select(string column,string value) to get a specific row in a listview.When using the first column to find the row,it got wrong,with the following error message;While,using the other remaing columns ,all right.But I need to search a row by the first column only in my test.

Error Error invoking ListView.Select
   at Bricks.RuntimeFramework.ReflectedObject.Invoke(MethodInfo methodInfo, Object[] arguments)
   at Bricks.DynamicProxy.DynamicProxyInterceptors.Process(IInvocation invocation, InterceptContext interceptedContext)
   at White.Core.Interceptors.CoreInterceptor.Intercept(IInvocation invocation)
   at Castle.DynamicProxy.AbstractInvocation.Proceed()
   at ListViewProxy86ae485cbea540d6b43e6794e2a6160d.Select(String column, String value)

Object reference not set to an instance of an object.
   at White.Core.UIItems.ListViewRows.<>c__DisplayClass1.<Get>b__0(ListViewRow obj)
   at System.Collections.Generic.List`1.Find(Predicate`1 match)
   at White.Core.UIItems.ListViewRows.Get(String column, String value)
   at White.Core.UIItems.ListView.GetItem(String column, String value)
   at White.Core.UIItems.ListView.Select(String column, String value)

What goes wrong?Is there any way to select a row by the first column in a listview??


Feb 20, 2012 at 8:21 AM


WPF Application?


does the cells Property contains information (on a row object)?