ListView.Select(string column,string value)?

Feb 20, 2012 at 12: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
Bricks.BricksException
   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.
System.NullReferenceException
   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 7:21 AM

duplicate ? delete please

Feb 21, 2012 at 1:37 AM

Hi:

duplicate?what do it means? I'm using  VS2010 (C# ) to test  .dll files which were integrated into  my applicational project.

ListView is containd in the namespace " White.Core.UIItems";

I have to choose the "IO"row in the  following listview ,when using the 2 and 3 codes ,it worked.But ,when using the 1 codes ,it didn't works.

I think they are just the same ,it should have worked  choosing whatever columns . So , do you know what's going wrong?

  1. listView1.Select("Name", "IO");-failed
  2. listView1.Select("Vendor","ZJU");-succeed
  3. listView1.Select("Version","3.1");-succeed

Name

Vendor

Version

Date

IO

ZJU

3.1

2012-2-2

 

 

 

 

 

 

 

 

error messages:

Error Error invoking ListView.Select
Bricks.BricksException
   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.
System.NullReferenceException
   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)

I also have tried other ways like:

"ListViewRow finishValueRow2 = listView1.Row("Name", "IO");" -failed.

"ListViewRow finishValueRow = listView1.Row("Vendor", "ZJU");"-succeed

error messages:

Error Error invoking ListView.Row
Bricks.BricksException
   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 ListViewProxy728db1f709544752a9a2ba54873d75ab.Row(String column, String value)
  

Object reference not set to an instance of an object.
System.NullReferenceException
   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.Row(String column, String value)

Feb 21, 2012 at 1:37 AM

Hi:

duplicate?what do it means? I'm using  VS2010 (C# ) to test  .dll files which were integrated into  my applicational project.

ListView is containd in the namespace " White.Core.UIItems";

I have to choose the "IO"row in the  following listview ,when using the 2 and 3 codes ,it worked.But ,when using the 1 codes ,it didn't works.

I think they are just the same ,it should have worked  choosing whatever columns . So , do you know what's going wrong?

  1. listView1.Select("Name", "IO");-failed
  2. listView1.Select("Vendor","ZJU");-succeed
  3. listView1.Select("Version","3.1");-succeed

Name

Vendor

Version

Date

IO

ZJU

3.1

2012-2-2

 

 

 

 

 

 

 

 

error messages:

Error Error invoking ListView.Select
Bricks.BricksException
   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.
System.NullReferenceException
   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)

I also have tried other ways like:

"ListViewRow finishValueRow2 = listView1.Row("Name", "IO");" -failed.

"ListViewRow finishValueRow = listView1.Row("Vendor", "ZJU");"-succeed

error messages:

Error Error invoking ListView.Row
Bricks.BricksException
   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 ListViewProxy728db1f709544752a9a2ba54873d75ab.Row(String column, String value)
  

Object reference not set to an instance of an object.
System.NullReferenceException
   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.Row(String column, String value)

Feb 21, 2012 at 1:37 AM
Edited Feb 21, 2012 at 1:38 AM

Do

Feb 21, 2012 at 1:37 AM

Hi:

duplicate?what do it means? I'm using  VS2010 (C# ) to test  .dll files which were integrated into  my applicational project.

ListView is containd in the namespace " White.Core.UIItems";

I have to choose the "IO"row in the  following listview ,when using the 2 and 3 codes ,it worked.But ,when using the 1 codes ,it didn't works.

I think they are just the same ,it should have worked  choosing whatever columns . So , do you know what's going wrong?

  1. listView1.Select("Name", "IO");-failed
  2. listView1.Select("Vendor","ZJU");-succeed
  3. listView1.Select("Version","3.1");-succeed

Name

Vendor

Version

Date

IO

ZJU

3.1

2012-2-2

 

 

 

 

 

 

 

 

error messages:

Error Error invoking ListView.Select
Bricks.BricksException
   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.
System.NullReferenceException
   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)

I also have tried other ways like:

"ListViewRow finishValueRow2 = listView1.Row("Name", "IO");" -failed.

"ListViewRow finishValueRow = listView1.Row("Vendor", "ZJU");"-succeed

error messages:

Error Error invoking ListView.Row
Bricks.BricksException
   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 ListViewProxy728db1f709544752a9a2ba54873d75ab.Row(String column, String value)
  

Object reference not set to an instance of an object.
System.NullReferenceException
   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.Row(String column, String value)

Feb 21, 2012 at 1:37 AM

Hi:

duplicate?what do it means? I'm using  VS2010 (C# ) to test  .dll files which were integrated into  my applicational project.

ListView is containd in the namespace " White.Core.UIItems";

I have to choose the "IO"row in the  following listview ,when using the 2 and 3 codes ,it worked.But ,when using the 1 codes ,it didn't works.

I think they are just the same ,it should have worked  choosing whatever columns . So , do you know what's going wrong?

  1. listView1.Select("Name", "IO");-failed
  2. listView1.Select("Vendor","ZJU");-succeed
  3. listView1.Select("Version","3.1");-succeed

Name

Vendor

Version

Date

IO

ZJU

3.1

2012-2-2

 

 

 

 

 

 

 

 

error messages:

Error Error invoking ListView.Select
Bricks.BricksException
   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.
System.NullReferenceException
   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)

I also have tried other ways like:

"ListViewRow finishValueRow2 = listView1.Row("Name", "IO");" -failed.

"ListViewRow finishValueRow = listView1.Row("Vendor", "ZJU");"-succeed

error messages:

Error Error invoking ListView.Row
Bricks.BricksException
   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 ListViewProxy728db1f709544752a9a2ba54873d75ab.Row(String column, String value)
  

Object reference not set to an instance of an object.
System.NullReferenceException
   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.Row(String column, String value)

Feb 21, 2012 at 6:58 AM
Edited Feb 21, 2012 at 7:11 AM

Hi I mean the you have posted your answer 3 times in this forum :);

 

And you post the same things many times. try to delete duplicated posts and look here

Feb 21, 2012 at 7:47 AM

So sorry,I clicked the "Save" twice. I thought I havn't send it successfully.I'll delete it.

Feb 21, 2012 at 7:47 AM

So sorry,I clicked the "Save" twice. I thought I havn't send it successfully.I'll delete it.

Feb 21, 2012 at 7:47 AM

So sorry,I clicked the "Save" twice. I thought I havn't send it successfully.I'll delete it.

Feb 21, 2012 at 7:57 AM

ok your cell info is not empty, so it might be that the Header name is not complete. debug the listView and have a look init

 

yourListView.Header.Columns

have a deeply look on the names of the LisViewCollums Collection. In some cases the developer added a " " behind the header name because of problems with table view.

Throndorin
Feb 22, 2012 at 1:27 AM

I tried, didn't work~~

Feb 22, 2012 at 1:27 AM

I tried, didn't work~~

Feb 22, 2012 at 7:05 AM

Hi

what does UIAVerify say about the "IO" string?

 

Throndorin

Feb 22, 2012 at 7:19 AM
Hi:
I'm just using the white.NUnit, not the UIAVerfiy .I don't know what it is about.I'll get to know it first.



From: "Throndorin" <notifications@codeplex.com>
To: Lyla-Lan Yuan/CNAUS/ABB@ABB_CN01
Date: 02/22/2012 04:12 PM
Subject: Re: ListView.Select(string column,string value)? [white:329547]




From: Throndorin

Hi

what does UIAVerify say about the "IO" string?

Throndorin

Read the full discussion online.

To add a post to this discussion, reply to this email (white@discussions.codeplex.com)

To start a new discussion for this project, email white@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com


*** Attention ***
This electronic mail including attachments is intended only for the person(s) or entity to which it is addressed and may contain confidential and/or legally privileged material and information. Unauthorized disclosure, copying, distribution or use of this material and information may be unlawful and is strictly prohibited. If you are not the intended recipient and have received this mail in error, please immediately contact the sender and delete all contents of the e-mail as well as any copies made.
Thank You!